WordPress.org

Plugin Directory

Changeset 779344


Ignore:
Timestamp:
09/27/13 18:33:12 (7 months ago)
Author:
greenshady
Message:

Update to version 0.2.3.

Location:
members
Files:
91 added
4 edited

Legend:

Unmodified
Added
Removed
  • members/trunk/admin/settings.php

    r633760 r779344  
    7474 * @since 0.2.0 
    7575 */ 
    76 function members_validate_settings( $input ) { 
     76function members_validate_settings( $settings ) { 
    7777 
    7878    /* Check if the role manager is active. */ 
    79     $settings['role_manager'] = ( isset( $input['role_manager'] ) ? 1 : 0 ); 
     79    $settings['role_manager'] = ( isset( $settings['role_manager'] ) ? 1 : 0 ); 
    8080 
    8181    /* Check if the content permissions feature is active. */ 
    82     $settings['content_permissions'] = ( isset( $input['content_permissions'] ) ? 1 : 0 ); 
     82    $settings['content_permissions'] = ( isset( $settings['content_permissions'] ) ? 1 : 0 ); 
    8383 
    8484    /* Set the content permissions error text and kill evil scripts. */ 
    85     if ( current_user_can( 'unfiltered_html' ) && isset( $input['content_permissions_error'] ) ) 
    86         $settings['content_permissions_error'] = stripslashes( wp_filter_post_kses( addslashes( $input['content_permissions_error'] ) ) ); 
     85    if ( current_user_can( 'unfiltered_html' ) && isset( $settings['content_permissions_error'] ) ) 
     86        $settings['content_permissions_error'] = stripslashes( wp_filter_post_kses( addslashes( $settings['content_permissions_error'] ) ) ); 
    8787 
    88     elseif ( isset( $input['content_permissions_error'] ) ) 
    89         $settings['content_permissions_error'] = $input['content_permissions_error']; 
     88    elseif ( isset( $settings['content_permissions_error'] ) ) 
     89        $settings['content_permissions_error'] = $settings['content_permissions_error']; 
    9090 
    9191    /* Check if the login form and users widgets are active. */ 
    92     $settings['login_form_widget'] = ( isset( $input['login_form_widget'] ) ? 1 : 0 ); 
    93     $settings['users_widget'] = ( isset( $input['users_widget'] ) ? 1 : 0 ); 
     92    $settings['login_form_widget'] = ( isset( $settings['login_form_widget'] ) ? 1 : 0 ); 
     93    $settings['users_widget'] = ( isset( $settings['users_widget'] ) ? 1 : 0 ); 
    9494 
    9595    /* Check if the private blog and private feed features are active. */ 
    96     $settings['private_blog'] = ( isset( $input['private_blog'] ) ? 1 : 0 ); 
    97     $settings['private_feed'] = ( isset( $input['private_feed'] ) ? 1 : 0 ); 
     96    $settings['private_blog'] = ( isset( $settings['private_blog'] ) ? 1 : 0 ); 
     97    $settings['private_feed'] = ( isset( $settings['private_feed'] ) ? 1 : 0 ); 
    9898 
    9999    /* Set the private feed error text and kill evil scripts. */ 
    100     if ( current_user_can( 'unfiltered_html' ) && isset( $input['private_feed_error'] ) ) 
    101         $settings['private_feed_error'] = stripslashes( wp_filter_post_kses( addslashes( $input['private_feed_error'] ) ) ); 
     100    if ( current_user_can( 'unfiltered_html' ) && isset( $settings['private_feed_error'] ) ) 
     101        $settings['private_feed_error'] = stripslashes( wp_filter_post_kses( addslashes( $settings['private_feed_error'] ) ) ); 
    102102 
    103     elseif ( isset( $input['private_feed_error'] ) ) 
    104         $settings['private_feed_error'] = $input['private_feed_error']; 
     103    elseif ( isset( $settings['private_feed_error'] ) ) 
     104        $settings['private_feed_error'] = $settings['private_feed_error']; 
    105105 
    106106    /* Return the validated/sanitized settings. */ 
  • members/trunk/includes/shortcodes.php

    r633760 r779344  
    2424 
    2525    /* Add the [feed] shortcode. */ 
    26     add_shortcode( 'feed', 'members_access_check_shortcode' ); 
     26    add_shortcode( 'feed', 'members_feed_shortcode' ); 
    2727 
    2828    /* Add the [is_user_logged_in] shortcode. */ 
  • members/trunk/members.php

    r633760 r779344  
    44 * Plugin URI: http://justintadlock.com/archives/2009/09/17/members-wordpress-plugin 
    55 * Description: A user, role, and content management plugin for controlling permissions and access. A plugin for making WordPress a more powerful <acronym title="Content Management System">CMS</acronym>. 
    6  * Version: 0.2.2 
     6 * Version: 0.2.3 
    77 * Author: Justin Tadlock 
    88 * Author URI: http://justintadlock.com 
     
    2121 * 
    2222 * @package Members 
    23  * @version 0.2.2 
     23 * @version 0.2.3 
    2424 * @author Justin Tadlock <justin@justintadlock.com> 
    25  * @copyright Copyright (c) 2009 - 2012, Justin Tadlock 
     25 * @copyright Copyright (c) 2009 - 2013, Justin Tadlock 
    2626 * @link http://justintadlock.com/archives/2009/09/17/members-wordpress-plugin 
    2727 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
     
    3434 
    3535    /** 
    36      * PHP4 constructor method.  This will be removed once the plugin only supports WordPress 3.2,  
    37      * which is the version that drops PHP4 support. 
    38      * 
    39      * @since 0.2.0 
    40      */ 
    41     function Members_Load() { 
    42         $this->__construct(); 
    43     } 
    44  
    45     /** 
    4636     * PHP5 constructor method. 
    4737     * 
     
    171161 
    172162        /* Get the administrator role. */ 
    173         $role =& get_role( 'administrator' ); 
     163        $role = get_role( 'administrator' ); 
    174164 
    175165        /* If the administrator role exists, add required capabilities for the plugin. */ 
  • members/trunk/readme.txt

    r633760 r779344  
    11=== Members === 
     2 
    23Contributors: greenshady 
    34Donate link: http://themehybrid.com/donate 
    45Tags: admin, role, roles, member, members, profile, shortcode, user, users, widget, widgets 
    56Requires at least: 3.4 
    6 Tested up to: 3.5 
    7 Stable tag: 0.2.2 
     7Tested up to: 3.7 
     8Stable tag: 0.2.3 
    89 
    910A user, role, and content management plugin that makes WordPress a more powerful CMS. 
     
    31321. Upload `members` to the `/wp-content/plugins/` directory. 
    32331. Activate the plugin through the 'Plugins' menu in WordPress. 
    33 1. Go to <em>Settings > Members Components</em> to select which components you'd like to use. 
     341. Go to <em>Settings > Members</em> to select which settings you'd like to use. 
    3435 
    3536More detailed instructions are included in the plugin's `readme.html` file. 
     
    7172== Changelog == 
    7273 
     74**Version 0.2.3** 
     75 
     76* Fixes the strict standards notice "Redefining already defined constructor for class Members_Load". 
     77* No longer uses `&` for passing the role name by reference on plugin activation. 
     78* Fixes the `[feed]` shortcode, which was using the wrong callback function. 
     79 
    7380**Version 0.2.2** 
    7481 
Note: See TracChangeset for help on using the changeset viewer.