Changeset 498329
- Timestamp:
- 02/01/2012 04:50:59 AM (14 years ago)
- Location:
- wp-user-control/trunk
- Files:
-
- 7 edited
-
css/style.css (modified) (1 diff)
-
inc/Exception.php (modified) (1 diff)
-
inc/SidebarWidget.php (modified) (1 diff)
-
inc/Utilities.php (modified) (1 diff)
-
inc/WPUserControlWidget.php (modified) (3 diffs)
-
readme.txt (modified) (4 diffs)
-
wp_uc_widget.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-user-control/trunk/css/style.css
r498311 r498329 1 1 /* 2 WP User Control Widget 1.1 2 WP User Control Widget 1.1.1 3 3 Contact: Bill Edgar (bill.edgar@oaktondata.com) 4 4 http://www.oaktondata.com/wp-user-control -
wp-user-control/trunk/inc/Exception.php
r498311 r498329 2 2 3 3 /* 4 WP User Control Widget 1.1 4 WP User Control Widget 1.1.1 5 5 Contact: Bill Edgar (bill.edgar@oaktondata.com) 6 6 http://www.oaktondata.com/wp-user-control -
wp-user-control/trunk/inc/SidebarWidget.php
r498311 r498329 2 2 3 3 /* 4 WP Sidebar Widget Base Class 1.1 4 WP Sidebar Widget Base Class 1.1.1 5 5 Contact: Bill Edgar (bill.edgar@oaktondata.com) 6 6 http://www.oaktondata.com/wp-user-control -
wp-user-control/trunk/inc/Utilities.php
r498311 r498329 2 2 3 3 /* 4 WP User Control Widget 1.1 4 WP User Control Widget 1.1.1 5 5 Contact: Bill Edgar (bill.edgar@oaktondata.com) 6 6 http://www.oaktondata.com/wp-user-control -
wp-user-control/trunk/inc/WPUserControlWidget.php
r498311 r498329 1 1 <?php 2 2 /* 3 WP User Control Widget 1.1 3 WP User Control Widget 1.1.1 4 4 Contact: Bill Edgar (bill.edgar@oaktondata.com) 5 5 http://www.oaktondata.com/wp-user-control … … 115 115 * @param string $email 116 116 */ 117 function wp_user_control_registration_errors_filter( $ errors, $login, $email ) {117 function wp_user_control_registration_errors_filter( $registerErrors, $login, $email ) { 118 118 $referrer = $_SERVER['HTTP_REFERER']; // get submission source 119 119 // if theres a valid referrer, and its not the default log-in screen 120 if ( !empty( $referrer ) ) {121 if ( isset( $ errors->errors['email_exists'] ) ) {120 if ( !empty( $referrer ) && is_object( $registerErrors ) ) { 121 if ( isset( $registerErrors->errors['email_exists'] ) ) { 122 122 $referrer = wp_user_control_cleanURI( $referrer ); 123 123 // append information (register=false&error=email_exists) to the URL for the theme to use 124 124 wp_redirect( $referrer . '?register=false®ister_error=email_exists' ); 125 exit; 126 } elseif ( isset( $errors->errors['username_exists'] ) ) { 125 } elseif ( isset( $registerErrors->errors['username_exists'] ) ) { 127 126 $referrer = wp_user_control_cleanURI( $referrer ); 128 127 // append information (register=false&error=username_exists) to the URL for the theme to use 129 128 wp_redirect( $referrer . '?register=false®ister_error=username_exists' ); 130 exit;131 129 } 132 130 } 131 return $registerErrors; 133 132 } // end function registration_errors_filter 134 133 … … 441 440 <div class="username"> 442 441 <label for="user_login"><?php _e( 'Username' ); ?>: </label> 443 <input type="text" name="user_login" value="<?php echo esc_attr( stripslashes( $user_login )); ?>" id="user_login" tabindex="101" />442 <input type="text" name="user_login" value="<?php echo esc_attr( stripslashes( $user_login ) ); ?>" id="user_login" tabindex="101" /> 444 443 </div> 445 444 <div class="password"> 446 445 <label for="user_email"><?php _e( 'Email' ); ?>: </label> 447 <input type="text" name="user_email" value="<?php echo esc_attr( stripslashes( $user_email )); ?>" id="user_email" tabindex="102" />446 <input type="text" name="user_email" value="<?php echo esc_attr( stripslashes( $user_email ) ); ?>" id="user_email" tabindex="102" /> 448 447 </div> 449 448 <div class="login_fields"> -
wp-user-control/trunk/readme.txt
r498311 r498329 5 5 Requires at least: 2.9 6 6 Tested up to: 3.3.1 7 Stable tag: 1.1 7 Stable tag: 1.1.1 8 8 9 9 Add a sidebar widget to WordPress that allows a user to login, register, or reset their password, ALL without leaving their current location! … … 17 17 <li>Handles unsuccessful login attempts</li> 18 18 <li>Handles registration errors for email exists and username exists</li> 19 <li>Enables custom login URL input for standard login and user registration emails</li>19 <li>Enables redirect to custom login URL for standard login</li> 20 20 <li>No HTML or CSS knowledge needed to customize</li> 21 21 <li>Cross-browser compatible</li> … … 63 63 == Changelog == 64 64 65 = 1.1.1 = 66 * Fixed registration bug for new user registration. 67 65 68 = 1.1 = 66 69 * Added capability to handle unsuccessful login attempts, and redirect to referring location with notification display. … … 73 76 == Upgrade Notice == 74 77 78 = 1.1.1 = 79 * IMPORTANT: Fixed registration bug for new user registration. 80 75 81 = 1.1 = 76 82 * Added capability to handle unsuccessful login attempts, and redirect to referring location with notification display. -
wp-user-control/trunk/wp_uc_widget.php
r498311 r498329 5 5 Plugin Name: WP User Control 6 6 Plugin URI: http://oaktondata.com/wp-user-control/ 7 Version: 1.1 7 Version: 1.1.1 8 8 Author: Bill Edgar 9 9 Author URI: http://oaktondata.com
Note: See TracChangeset
for help on using the changeset viewer.