WordPress.org

Plugin Directory

Changeset 793428


Ignore:
Timestamp:
10/25/13 07:41:47 (6 months ago)
Author:
greenshady
Message:

Bringing in the version 0.2.4 files of the plugin.

Location:
members
Files:
67 added
5 edited

Legend:

Unmodified
Added
Removed
  • members/trunk/admin/meta-box-post-content-permissions.php

    r396884 r793428  
    1212/* Saves the content permissions metabox data to a custom field. */ 
    1313add_action( 'save_post', 'members_content_permissions_save_meta', 10, 2 ); 
     14add_action( 'add_attachment', 'members_content_permissions_save_meta' ); 
     15add_action( 'edit_attachment', 'members_content_permissions_save_meta' ); 
    1416 
    1517/** 
     
    8991 * @since 0.1.0 
    9092 */ 
    91 function members_content_permissions_save_meta( $post_id, $post ) { 
     93function members_content_permissions_save_meta( $post_id, $post = '' ) { 
    9294    global $wp_roles; 
     95 
     96    /* Fix for attachment save issue in WordPress 3.5. @link http://core.trac.wordpress.org/ticket/21963 */ 
     97    if ( !is_object( $post ) ) 
     98        $post = get_post(); 
    9399 
    94100    /* Verify the nonce. */ 
  • members/trunk/admin/settings.php

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

    r396884 r793428  
    66 * @subpackage Includes 
    77 */ 
     8 
     9/* Don't run when installing. */ 
     10if ( defined( 'WP_INSTALLING' ) && WP_INSTALLING ) 
     11  return; 
    812 
    913/* Hook our version check to 'init'. */ 
  • members/trunk/members.php

    r779344 r793428  
    22/** 
    33 * Plugin Name: Members 
    4  * Plugin URI: http://justintadlock.com/archives/2009/09/17/members-wordpress-plugin 
     4 * Plugin URI: http://themehybrid.com/plugins/members 
    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.3 
     6 * Version: 0.2.4 
    77 * Author: Justin Tadlock 
    88 * Author URI: http://justintadlock.com 
     
    2121 * 
    2222 * @package Members 
    23  * @version 0.2.3 
     23 * @version 0.2.4 
    2424 * @author Justin Tadlock <justin@justintadlock.com> 
    2525 * @copyright Copyright (c) 2009 - 2013, Justin Tadlock 
     
    6868 
    6969        /* Set the version number of the plugin. */ 
    70         define( 'MEMBERS_VERSION', '0.2.2' ); 
     70        define( 'MEMBERS_VERSION', '0.2.4' ); 
    7171 
    7272        /* Set the database version number of the plugin. */ 
  • members/trunk/readme.txt

    r779344 r793428  
    66Requires at least: 3.4 
    77Tested up to: 3.7 
    8 Stable tag: 0.2.3 
     8Stable tag: 0.2.4 
    99 
    1010A user, role, and content management plugin that makes WordPress a more powerful CMS. 
     
    1212== Description == 
    1313 
    14 *Members* is a plugin that extends your control over your blog.  It's a user, role, and content management plugin that was created to make WordPress a more powerful CMS. 
     14Members is a plugin that extends your control over your blog.  It's a user, role, and content management plugin that was created to make WordPress a more powerful CMS. 
    1515 
    1616The foundation of the plugin is its extensive role and capability management system.  This is the backbone of all the current features and planned future features. 
    1717 
    18 **Plugin Features:** 
     18### Plugin Features: 
    1919 
    2020* Role Manager: Allows you to edit, create, and delete roles as well as capabilities for these roles. 
     
    2424* Private Site: You can make your site and its feed completely private if you want. 
    2525 
    26 **If updating from a previous version:** 
     26### Professional Support 
    2727 
    28 If you've used a previous version of the Members plugin, please check your settings under Settings > Members and reset your Users and Login Form widgets (if you were using them). 
     28If you need professional plugin support from me, the plugin author, you can access the support forums at [Theme Hybrid](http://themehybrid.com/support), which is a professional WordPress help/support site where I handle support for all my plugins and themes for a community of 40,000+ users (and growing). 
     29 
     30### Plugin Development 
     31 
     32If you're a theme author, plugin author, or just a code hobbyist, you can follow the development of this plugin on it's [GitHub repository](https://github.com/justintadlock/members).  
     33 
     34### Donations 
     35 
     36Yes, I do accept donations.  If you want to buy me a beer or whatever, you can do so from my [donations page](http://themehybrid.com/donate).  I appreciate all donations, no matter the size.  Further development of this plugin is not contingent on donations, but they are always a nice incentive. 
    2937 
    3038== Installation == 
    3139 
    32401. Upload `members` to the `/wp-content/plugins/` directory. 
    33 1. Activate the plugin through the 'Plugins' menu in WordPress. 
    34 1. Go to <em>Settings > Members</em> to select which settings you'd like to use. 
     412. Activate the plugin through the 'Plugins' menu in WordPress. 
     423. Go to <em>Settings > Members</em> to select which settings you'd like to use. 
    3543 
    3644More detailed instructions are included in the plugin's `readme.html` file. 
     
    3846== Frequently Asked Questions == 
    3947 
    40 = Why was this plugin created? = 
     48### Why was this plugin created? 
    4149 
    4250I wasn't satisfied with the current user, role, and permissions plugins available.  Yes, some of them are good, but nothing fit what I had in mind perfectly.  Some offered few features.  Some worked completely outside of the WordPress APIs.  Others lacked the GPL license. 
     
    4452This plugin is still a long way away from my goals, but it'll get there eventually. 
    4553 
    46 = How do I use it? = 
     54### How do I use it? 
    4755 
    4856Most things should be fairly straightforward, but I've included an in-depth guide in the plugin download.  It's a file called `readme.html` in the `/docs` folder. 
     
    5260Now, open up the `/docs/readme.html` file included in the plugin download and read the documentation. 
    5361 
    54 = I can't access the "Role Manager" features. = 
     62### I can't access the "Role Manager" features. 
    5563 
    5664When the plugin is first activated, it runs a script that sets specific capabilities to the "Administrator" role on your site that grants you access to this feature.  So, you must be logged in with the administrator account to access the role manager. 
    5765 
    58 If, for some reason, you do have the administrator role and the role manager is still inaccesible to you, deactivate the plugin.  Then, reactivate it. 
     66If, for some reason, you do have the administrator role and the role manager is still inaccessible to you, deactivate the plugin.  Then, reactivate it. 
    5967 
    60 = Help! I've locked myself out of my site! = 
     68### Help! I've locked myself out of my site! 
    6169 
    6270Well, that's why you really need to read the documentation for the plugin before actually using it, especially a plugin that controls permissions for your site. 
     
    7280== Changelog == 
    7381 
    74 **Version 0.2.3** 
     82### Version 0.2.4 
     83 
     84* Fixed content permissions not saving for attachments. Note that this only protects **content** and not media files. 
     85* No longer runs the upgrade script when `WP_INSTALLING` is `TRUE`. 
     86 
     87### Version 0.2.3 
    7588 
    7689* Fixes the strict standards notice "Redefining already defined constructor for class Members_Load". 
     
    7891* Fixes the `[feed]` shortcode, which was using the wrong callback function. 
    7992 
    80 **Version 0.2.2** 
     93### Version 0.2.2 
    8194 
    8295* No longer displays non-editable roles on the edit roles screen. 
    8396 
    84 **Version 0.2.1** 
     97### Version 0.2.1 
    8598 
    8699* Fixes the " Creating default object from empty value" error. 
    87100 
    88 **Version 0.2** 
     101### Version 0.2.0 
    89102 
    90103* Updated everything.  Nearly all the code was rewritten from the ground up to make for a better user experience. 
    91104* Plugin users should check their plugin settings. 
    92105 
    93 **Version 0.1.1** 
     106### Version 0.1.1 
    94107 
    95108* Fixed a bug with the Content Permissions component that restricted access to everyone. 
     
    99112* Updated some non-internationalized strings. 
    100113 
    101 **Version 0.1** 
     114### Version 0.1.0 
    102115 
    103116* Plugin launch.  Everything's new! 
     
    105118== Upgrade Notice == 
    106119 
    107 = Version 0.2 = 
     120### If upgrading from a version earlier than 0.2.0 
    108121 
    109 Version 0.2 is a complete overhaul of the plugin.  It includes security fixes, bug fixes, and a few new features.  Please check your plugin settings and widget settings. 
     122Version 0.2.0 included a complete overhaul of the plugin. Please check your plugin and widget settings. 
Note: See TracChangeset for help on using the changeset viewer.