WordPress.org

Plugin Directory

Changeset 783384


Ignore:
Timestamp:
10/06/13 07:15:13 (7 months ago)
Author:
greenshady
Message:

Update to version 0.2.0.

Location:
prevent-password-reset
Files:
12 added
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • prevent-password-reset/trunk/prevent-password-reset.php

    r492296 r783384  
    22/** 
    33 * Plugin Name: Prevent Password Reset 
    4  * Plugin URI: http://justintadlock.com/archives/2012/01/19/prevent-password-reset-wordpress-plugin 
     4 * Plugin URI: http://themehybrid.com/plugins/prevent-password-reset 
    55 * Description: Prevents password reset for select users via the WordPress "lost password" form. This plugin adds a checkbox to each user's profile in the admin. If selected, it prevents the user's password from being reset. 
    6  * Version: 0.1 
     6 * Version: 0.2.0 
    77 * Author: Justin Tadlock 
    88 * Author URI: http://justintadlock.com 
    99 * 
    1010 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU  
    11  * General Public License version 2, as published by the Free Software Foundation.  You may NOT assume  
    12  * that you can use any other version of the GPL. 
     11 * General Public License as published by the Free Software Foundation; either version 2 of the License,  
     12 * or (at your option) any later version. 
    1313 * 
    1414 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without  
    1515 * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
    1616 * 
    17  * @package PreventPasswordReset 
    18  * @version 0.1.0 
    19  * @author Justin Tadlock <justin@justintadlock.com> 
    20  * @copyright Copyright (c) 2012, Justin Tadlock 
    21  * @link http://justintadlock.com/archives/2012/01/19/prevent-password-reset-wordpress-plugin 
    22  * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
     17 * You should have received a copy of the GNU General Public License along with this program; if not, write  
     18 * to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 
     19 * 
     20 * @package   PreventPasswordReset 
     21 * @version   0.2.0 
     22 * @author    Justin Tadlock <justin@justintadlock.com> 
     23 * @copyright Copyright (c) 2012 - 2013, Justin Tadlock 
     24 * @link      http://themehybrid.com/plugins/prevent-password-reset 
     25 * @license   http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    2326 */ 
    2427 
     
    2932 * Plugin setup function.  Loads the translation files and adds each action and filter to their appropriate hook. 
    3033 * 
    31  * @since 0.1.0 
     34 * @since  0.1.0 
     35 * @access public 
     36 * @return void 
    3237 */ 
    3338function ppr_setup() { 
     
    4348 
    4449    /* Save whether the user allows password resetting. */ 
    45     add_action( 'personal_options_update', 'ppr_save_user_meta' ); 
     50    add_action( 'personal_options_update',  'ppr_save_user_meta' ); 
    4651    add_action( 'edit_user_profile_update', 'ppr_save_user_meta' ); 
     52 
     53    /* Custom meta for plugin on the plugins admin screen. */ 
     54    add_filter( 'plugin_row_meta', 'ppr_plugin_row_meta', 10, 2 ); 
    4755} 
    4856 
     
    5159 * saved as user meta ('_prevent_password_reset'). 
    5260 * 
    53  * @since 0.1.0 
    54  * @param bool $allow Whether the password can be reset. 
    55  * @param int $user_id The ID of the user. 
    56  * @return bool $allow 
     61 * @since  0.1.0 
     62 * @param  bool   $allow    Whether the password can be reset. 
     63 * @param  int    $user_id The ID of the user. 
     64 * @return bool 
    5765 */ 
    5866function ppr_allow_password_reset( $allow, $user_id ) { 
     
    7179 * password can be reset. 
    7280 * 
    73  * @since 0.1.0 
    74  * @param object $user The user object for the user currently being edited. 
     81 * @since  0.1.0 
     82 * @access public 
     83 * @param  object  $user  The user object for the user currently being edited. 
     84 * @return void 
    7585 */ 
    7686function ppr_personal_options( $user ) { ?> 
     
    103113} 
    104114 
     115/** 
     116 * Adds support, rating, and donation links to the plugin row meta on the plugins admin screen. 
     117 * 
     118 * @since  0.2.0 
     119 * @access public 
     120 * @param  array  $meta 
     121 * @param  string $file 
     122 * @return array 
     123 */ 
     124function ppr_plugin_row_meta( $meta, $file ) { 
     125 
     126    if ( preg_match( '/prevent-password-reset\.php/i', $file ) ) { 
     127        $meta[] = '<a href="http://themehybrid.com/support">' . __( 'Plugin support', 'prevent-password-reset' ) . '</a>'; 
     128        $meta[] = '<a href="http://wordpress.org/support/view/plugin-reviews/prevent-password-reset#postform">' . __( 'Rate plugin', 'prevent-password-reset' ) . '</a>'; 
     129        $meta[] = '<a href="http://themehybrid.com/donate">' . __( 'Donate', 'prevent-password-reset' ) . '</a>'; 
     130    } 
     131 
     132    return $meta; 
     133} 
     134 
    105135?> 
  • prevent-password-reset/trunk/readme.txt

    r492300 r783384  
    11=== Prevent Password Reset === 
     2 
    23Contributors: greenshady 
    3 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3687060 
     4Donate link: http://themehybrid.com/donate 
    45Tags: admin, password 
    56Requires at least: 3.3 
    6 Tested up to: 3.3 
    7 Stable tag: 0.1 
     7Tested up to: 3.7 
     8Stable tag: 0.2.0 
     9License: GPLv2 or later 
     10License URI: http://www.gnu.org/licenses/gpl-2.0.html 
    811 
    912Prevents password reset for select users via the WordPress "lost password" form. 
     
    1821* This plugin does not disable the ability to edit/change a password from the user profile page. It merely blocks password resetting from the "lost password" form. 
    1922 
     23### Professional Support 
     24 
     25If 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). 
     26 
     27### Plugin Development 
     28 
     29If 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/prevent-password-reset).  
     30 
     31### Donations 
     32 
     33Yes, 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. 
     34 
    2035== Installation == 
    2136 
     
    2641== Frequently Asked Questions == 
    2742 
    28 = Why was this plugin created? = 
     43### Why was this plugin created? 
    2944 
    3045I needed a way to disable password resets for specific administrators on my site but leave this functionality open for the other 1,000s of users.  So, I chose to make this an option on a per-user basis. 
    3146 
    32 = How do I use it? = 
     47### How do I use it? 
    3348 
    3449Once installed, a checkbox gets added to the "Personal Options" section of each user's profile page in the WordPress admin.  Anyone who can edit the user may check this box to disable password resets for that individual user. 
    3550 
    36 = I forgot my password. What should I do? = 
     51### I forgot my password. What should I do? 
    3752 
    3853The easiest way to do this is to log into your hosting account via FTP.  Proceed to your plugins directory and delete the `prevent-password-reset` folder.  This should allow you to reset passwords for any user account via the "lost password" form. 
     
    4762== Changelog == 
    4863 
    49 **Version 0.1** 
     64### Version 0.2.0 
     65 
     66* Changed license from GPL v2-only to GPL v2+. 
     67* Added plugin row meta for the plugin. 
     68* Dropped the MO and PO files in favor of a POT file for translators. 
     69* Added a `readme.md` file since this plugin is now on GitHub. 
     70* Updated this `readme.txt` file. 
     71* Updated this plugin for the mere purpose of updating. WordPress.org has created a stigma around plugins that don't get updates every so often by putting a big warning box at the top of the plugin's page.  Basically, it's telling users to beware!  Of course, this is just ridiculous, particularly when talking about a plugin that most likely will never need an update (like this one).  Some plugins are simply "set and forget" forever.  But, because of how WordPress.org treats these types of plugins, lumping them into a "bad plugin" pool with plugins that actually do need updates, I'm forced to create a rather useless update to this plugin.  Update if you wish; it's not actually necessary.  It's just necessary for me to update the plugin in order for it to not be de-listed from the WordPress.org search results.  Good day. 
     72 
     73### Version 0.1.0 
    5074 
    5175* Plugin launch.  Everything's new! 
Note: See TracChangeset for help on using the changeset viewer.