Plugin Directory

Changeset 498329


Ignore:
Timestamp:
02/01/2012 04:50:59 AM (14 years ago)
Author:
wmsedgar
Message:

Committing version 1.1.1.

Location:
wp-user-control/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • wp-user-control/trunk/css/style.css

    r498311 r498329  
    11/*
    2     WP User Control Widget 1.1
     2    WP User Control Widget 1.1.1
    33    Contact: Bill Edgar (bill.edgar@oaktondata.com)
    44    http://www.oaktondata.com/wp-user-control
  • wp-user-control/trunk/inc/Exception.php

    r498311 r498329  
    22
    33/*
    4     WP User Control Widget 1.1
     4    WP User Control Widget 1.1.1
    55    Contact: Bill Edgar (bill.edgar@oaktondata.com)
    66    http://www.oaktondata.com/wp-user-control
  • wp-user-control/trunk/inc/SidebarWidget.php

    r498311 r498329  
    22
    33/*
    4     WP Sidebar Widget Base Class 1.1
     4    WP Sidebar Widget Base Class 1.1.1
    55    Contact: Bill Edgar (bill.edgar@oaktondata.com)
    66    http://www.oaktondata.com/wp-user-control
  • wp-user-control/trunk/inc/Utilities.php

    r498311 r498329  
    22
    33/*
    4     WP User Control Widget 1.1
     4    WP User Control Widget 1.1.1
    55    Contact: Bill Edgar (bill.edgar@oaktondata.com)
    66    http://www.oaktondata.com/wp-user-control
  • wp-user-control/trunk/inc/WPUserControlWidget.php

    r498311 r498329  
    11<?php
    22/*
    3     WP User Control Widget 1.1
     3    WP User Control Widget 1.1.1
    44    Contact: Bill Edgar (bill.edgar@oaktondata.com)
    55    http://www.oaktondata.com/wp-user-control
     
    115115 * @param string $email
    116116 */
    117 function wp_user_control_registration_errors_filter( $errors, $login, $email ) {
     117function wp_user_control_registration_errors_filter( $registerErrors, $login, $email ) {
    118118    $referrer = $_SERVER['HTTP_REFERER']; // get submission source
    119119    // if there’s a valid referrer, and it’s 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'] ) ) {
    122122            $referrer = wp_user_control_cleanURI( $referrer );
    123123            // append information (register=false&error=email_exists) to the URL for the theme to use
    124124            wp_redirect( $referrer . '?register=false&register_error=email_exists' );
    125             exit;
    126         } elseif ( isset( $errors->errors['username_exists'] ) ) {
     125        } elseif ( isset( $registerErrors->errors['username_exists'] ) ) {
    127126            $referrer = wp_user_control_cleanURI( $referrer );
    128127            // append information (register=false&error=username_exists) to the URL for the theme to use
    129128            wp_redirect( $referrer . '?register=false&register_error=username_exists' );
    130             exit;
    131129        }
    132130    }
     131    return $registerErrors;
    133132} // end function registration_errors_filter
    134133
     
    441440                                        <div class="username">
    442441                                            <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" />
    444443                                        </div>
    445444                                        <div class="password">
    446445                                            <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" />
    448447                                        </div>
    449448                                        <div class="login_fields">
  • wp-user-control/trunk/readme.txt

    r498311 r498329  
    55Requires at least: 2.9
    66Tested up to: 3.3.1
    7 Stable tag: 1.1
     7Stable tag: 1.1.1
    88
    99Add a sidebar widget to WordPress that allows a user to login, register, or reset their password, ALL without leaving their current location!
     
    1717    <li>Handles unsuccessful login attempts</li>
    1818    <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>
    2020    <li>No HTML or CSS knowledge needed to customize</li>
    2121    <li>Cross-browser compatible</li>
     
    6363== Changelog ==
    6464
     65= 1.1.1 =
     66* Fixed registration bug for new user registration.
     67
    6568= 1.1 =
    6669* Added capability to handle unsuccessful login attempts, and redirect to referring location with notification display.
     
    7376== Upgrade Notice ==
    7477
     78= 1.1.1 =
     79* IMPORTANT: Fixed registration bug for new user registration.
     80
    7581= 1.1 =
    7682* 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  
    55    Plugin Name: WP User Control
    66    Plugin URI: http://oaktondata.com/wp-user-control/
    7     Version: 1.1
     7    Version: 1.1.1
    88    Author: Bill Edgar
    99    Author URI: http://oaktondata.com
Note: See TracChangeset for help on using the changeset viewer.