Plugin Directory

Changeset 517093


Ignore:
Timestamp:
03/10/2012 03:31:12 AM (14 years ago)
Author:
wmsedgar
Message:

Committing version 1.2.1.

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

Legend:

Unmodified
Added
Removed
  • wp-user-control/trunk/inc/SidebarWidget.php

    r516378 r517093  
    3131    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    3232   
    33     This is the Googlyzer wp_SidebarWidget PHP base class file.
     33    This is the WP User Control wp_SidebarWidget PHP base class file.
    3434*/
    3535
     
    222222                // check to make sure selections is an array
    223223                if ( is_array( $selections ) ) {
    224                     if ( !googlyzer_Utilities::isAssociative( $selections ) ) {
     224                    if ( !wp_PluginUtilities::isAssociative( $selections ) ) {
    225225                        foreach ( $selections as $key => $item ) {
    226226                            if ( $type === 'dropdown' ) {
  • wp-user-control/trunk/inc/Utilities.php

    r516378 r517093  
    9696        }
    9797       
     98        /**
     99         *
     100         * method to check if array is associative
     101         *
     102         * @param array $arr
     103         *
     104         * @return boolean
     105         */
     106        public function isAssociative( $arr ) {
     107            if ( is_array( $arr ) ) {
     108                foreach ( $arr as $key => $value ) {
     109                    if ( !is_int( $key ) ) {
     110                        return true;
     111                    }
     112                }
     113            }
     114            return false;
     115        }
     116       
    98117    } // end class wp_PluginUtilities
    99118   
  • wp-user-control/trunk/inc/WPUserControlWidget.php

    r516378 r517093  
    175175        function wp_user_control_Widget() {
    176176            // initialize widget
     177            $my_locale = ( get_locale() ) ? get_locale() : 'en_US';
    177178            $this->init( array(
    178179                'widgetDescription' =>  __( 'Customizable user control widget for login, registration, lost password, etc. within sidebar.', 'wp-user-control' ),
    179180                'widgetDomain' =>       'wp-user-control',
    180                 'widgetLocale' =>       get_locale(),
     181                'widgetLocale' =>       $my_locale,
    181182                'widgetName' =>         'WP User Control Widget',
    182183                'widgetSlug' =>         'wp-user-control-widget',
     
    184185                'widgetStyleHandle' =>  'wp-user-control-widget-style'
    185186                ) );
    186            
    187187            // add action hooks
    188188            add_action(
  • wp-user-control/trunk/js/wp-user-control-widget.js

    r516378 r517093  
    22    WP User Control
    33    Contact: Bill Edgar (bill.edgar@oaktondata.com)
    4     http://www.oaktondata.com/googlyzer
     4    http://www.oaktondata.com/wp-user-control
    55   
    6     Copyright (c) 2011-2012, Oakton Data LLC
     6    Copyright (c) 2012, Oakton Data LLC
    77    All rights reserved.
    88
     
    3535function wp_user_control_widget_js( target ) {
    3636
    37     // jQuery( "#" + target + "_tab" ).addClass( "active_login" );
    3837    jQuery( ".tab_content_login" ).hide();
    3938    jQuery( "ul.tabs_login #" + target + "_tab" ).addClass( "active_login" ).show();
  • wp-user-control/trunk/readme.txt

    r516378 r517093  
    55Requires at least: 2.9
    66Tested up to: 3.3.1
    7 Stable tag: 1.2
     7Stable tag: 1.2.1
    88
    99Add a WordPress login widget that allows a user to login, register, or reset their password, ALL without leaving their current location!
     
    1212
    1313WP User Control adds a WordPress login widget (sidebar) that allows a user to login, register, retrieve lost passwords, etc. without leaving a specific location within your site.
    14 
    1514<strong>Key Features:</strong>
    1615<ul>
     
    6968== Changelog ==
    7069
     70= 1.2.1 =
     71* Fixed bug preventing options screen from displaying resulting from incorrect internal function call.
     72
    7173= 1.2 =
    7274* Fixed bug preventing javascript from activating on some systems. Separated JS into separate file and loaded using WP enqueuing method to make sure jQuery is properly loaded.
     
    9193== Upgrade Notice ==
    9294
     95= 1.1.2 =
     96* IMPORTANT: Fixed bug preventing options screen from displaying resulting from incorrect internal function call.
     97
    9398= 1.2 =
    9499* Added a bunch of new features (custom links, choose default tab, internationalization, etc.) and fixed some minor bugs (javascript not loading for some users, handling of password reset for invalid userid or emails, etc.)
  • wp-user-control/trunk/wp_uc_widget.php

    r516378 r517093  
    55    Plugin Name: WP User Control
    66    Plugin URI: http://oaktondata.com/wp-user-control/
    7     Version: 1.2
     7    Version: 1.2.1
    88    Author: Bill Edgar
    99    Author URI: http://oaktondata.com
     
    4343
    4444// define constants
    45 define( 'WP_USER_CONTROL_WIDGET_VERSION', '1.2' );
     45define( 'WP_USER_CONTROL_WIDGET_VERSION', '1.2.1' );
    4646define( 'WP_USER_CONTROL_WIDGET_BASE_URL', network_site_url() );
    4747
Note: See TracChangeset for help on using the changeset viewer.