WordPress.org

Plugin Directory

Changeset 555981


Ignore:
Timestamp:
06/11/12 06:15:39 (23 months ago)
Author:
coffee2code
Message:
  • Update to v1.8.1
  • Use string instead of variable to specify translation textdomain
  • Re-license as GPLv2 or later (from X11)
  • Add 'License' and 'License URI' header tags to readme.txt and plugin file
  • Remove ending PHP close tag
  • Note compatibility through WP 3.4+
Location:
admin-expert-mode
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • admin-expert-mode/tags/1.8.1/admin-expert-mode.php

    r476072 r555981  
    33 * @package Admin_Expert_Mode 
    44 * @author Scott Reilly 
    5  * @version 1.8 
     5 * @version 1.8.1 
    66 */ 
    77/* 
    88Plugin Name: Admin Expert Mode 
    9 Version: 1.8 
     9Version: 1.8.1 
    1010Plugin URI: http://coffee2code.com/wp-plugins/admin-expert-mode/ 
    1111Author: Scott Reilly 
    12 Author URI: http://coffee2code.com 
     12Author URI: http://coffee2code.com/ 
    1313Text Domain: admin-expert-mode 
    1414Domain Path: /lang/ 
     15License: GPLv2 or later 
     16License URI: http://www.gnu.org/licenses/gpl-2.0.html 
    1517Description: Allow users with access to the administration section to hide inline documentation and help text, which generally target beginning users. 
    1618 
    17 Compatible with WordPress 2.8+, 2.9+, 3.0+, 3.1+, 3.2+, 3.3+. 
     19Compatible with WordPress 2.8 through 3.4+. 
    1820 
    1921=>> Read the accompanying readme.txt file for instructions and documentation. 
     
    2325 
    2426/* 
    25 Copyright (c) 2009-2012 by Scott Reilly (aka coffee2code) 
    26  
    27 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation 
    28 files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, 
    29 modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the  
    30 Software is furnished to do so, subject to the following conditions: 
    31  
    32 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 
    33  
    34 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 
    35 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 
    36 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR 
    37 IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 
     27    Copyright (c) 2009-2012 by Scott Reilly (aka coffee2code) 
     28 
     29    This program is free software; you can redistribute it and/or 
     30    modify it under the terms of the GNU General Public License 
     31    as published by the Free Software Foundation; either version 2 
     32    of the License, or (at your option) any later version. 
     33 
     34    This program is distributed in the hope that it will be useful, 
     35    but WITHOUT ANY WARRANTY; without even the implied warranty of 
     36    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     37    GNU General Public License for more details. 
     38 
     39    You should have received a copy of the GNU General Public License 
     40    along with this program; if not, write to the Free Software 
     41    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA. 
    3842*/ 
    3943 
     
    4347    private static $admin_options_name = 'c2c_admin_expert_mode'; 
    4448    private static $field_name         = 'admin_expert_mode'; 
    45     private static $textdomain         = 'admin-expert-mode'; 
    4649    private static $prompt             = ''; 
    4750    private static $help_text          = ''; 
     
    5760     */ 
    5861    public static function version() { 
    59         return '1.8'; 
     62        return '1.8.1'; 
    6063    } 
    6164 
     
    7275     */ 
    7376    public static function do_init() { 
    74         load_plugin_textdomain( self::$textdomain, false, basename( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'lang' ); 
    75  
    76         self::$prompt =    __( 'Expert mode', self::$textdomain ); 
    77         self::$help_text = __( 'Enable expert mode (if you are familiar with WordPress and don\'t need the inline documentation in the admin).', self::$textdomain ); 
     77        load_plugin_textdomain( 'admin-expert-mode', false, basename( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'lang' ); 
     78 
     79        self::$prompt =    __( 'Expert mode', 'admin-expert-mode' ); 
     80        self::$help_text = __( 'Enable expert mode (if you are familiar with WordPress and don\'t need the inline documentation in the admin).', 'admin-expert-mode' ); 
    7881 
    7982        add_action( 'admin_notices',         array( __CLASS__, 'display_activation_notice' ) ); 
     
    110113        if ( get_transient( 'aem_activated' ) ) { 
    111114            if ( self::is_admin_expert_mode_active() ) 
    112                 $msg = __( 'Expert mode is now enabled for you since you had it previously enabled. You can disable it in your <a href="%s" title="Profile">profile</a>. Reminder: other admins must separately enable expert mode for themselves via their own profiles. (See the readme.txt for more advanced controls.)', self::$textdomain ); 
     115                $msg = __( 'Expert mode is now enabled for you since you had it previously enabled. You can disable it in your <a href="%s" title="Profile">profile</a>. Reminder: other admins must separately enable expert mode for themselves via their own profiles. (See the readme.txt for more advanced controls.)', 'admin-expert-mode' ); 
    113116            else 
    114                 $msg = __( '<strong>NOTE:</strong> You must enable expert mode for yourself (in your <a href="%s" title="Profile">profile</a>) for it to take effect. Other admin users must do the same for themselves as well. (See the readme.txt for more advanced controls.)', self::$textdomain ); 
     117                $msg = __( '<strong>NOTE:</strong> You must enable expert mode for yourself (in your <a href="%s" title="Profile">profile</a>) for it to take effect. Other admin users must do the same for themselves as well. (See the readme.txt for more advanced controls.)', 'admin-expert-mode' ); 
    115118            $msg = sprintf( $msg, admin_url( 'profile.php' ) ); 
    116119            echo "<div id='message' class='updated fade'><p>$msg</p></div>"; 
     
    200203 
    201204endif; // end if !class_exists() 
    202  
    203 ?> 
  • admin-expert-mode/tags/1.8.1/readme.txt

    r476072 r555981  
    33Donate link: http://coffee2code.com/donate 
    44Tags: admin, expert, help, remove inline documentation, coffee2code 
     5License: GPLv2 or later 
     6License URI: http://www.gnu.org/licenses/gpl-2.0.html 
    57Requires at least: 2.8 
    6 Tested up to: 3.3 
    7 Stable tag: 1.8 
    8 Version: 1.8 
     8Tested up to: 3.4 
     9Stable tag: 1.8.1 
     10Version: 1.8.1 
    911 
    1012Allow users with access to the administration section to hide inline documentation and help text, which generally target beginning users. 
     
    137139 
    138140== Changelog == 
     141 
     142= 1.8.1 = 
     143* Use string instead of variable to specify translation textdomain 
     144* Re-license as GPLv2 or later (from X11) 
     145* Add 'License' and 'License URI' header tags to readme.txt and plugin file 
     146* Remove ending PHP close tag 
     147* Note compatibility through WP 3.4+ 
    139148 
    140149= 1.8 = 
     
    212221== Upgrade Notice == 
    213222 
     223= 1.8.1 = 
     224Trivial update: noted compatibility through WP 3.4+; explicitly stated license 
     225 
    214226= 1.8 = 
    215227Recommended update. Highlights: various code improvements; enqueue CSS; noted compatibility through WP 3.3+ 
  • admin-expert-mode/trunk/admin-expert-mode.php

    r476072 r555981  
    33 * @package Admin_Expert_Mode 
    44 * @author Scott Reilly 
    5  * @version 1.8 
     5 * @version 1.8.1 
    66 */ 
    77/* 
    88Plugin Name: Admin Expert Mode 
    9 Version: 1.8 
     9Version: 1.8.1 
    1010Plugin URI: http://coffee2code.com/wp-plugins/admin-expert-mode/ 
    1111Author: Scott Reilly 
    12 Author URI: http://coffee2code.com 
     12Author URI: http://coffee2code.com/ 
    1313Text Domain: admin-expert-mode 
    1414Domain Path: /lang/ 
     15License: GPLv2 or later 
     16License URI: http://www.gnu.org/licenses/gpl-2.0.html 
    1517Description: Allow users with access to the administration section to hide inline documentation and help text, which generally target beginning users. 
    1618 
    17 Compatible with WordPress 2.8+, 2.9+, 3.0+, 3.1+, 3.2+, 3.3+. 
     19Compatible with WordPress 2.8 through 3.4+. 
    1820 
    1921=>> Read the accompanying readme.txt file for instructions and documentation. 
     
    2325 
    2426/* 
    25 Copyright (c) 2009-2012 by Scott Reilly (aka coffee2code) 
    26  
    27 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation 
    28 files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, 
    29 modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the  
    30 Software is furnished to do so, subject to the following conditions: 
    31  
    32 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 
    33  
    34 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 
    35 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 
    36 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR 
    37 IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 
     27    Copyright (c) 2009-2012 by Scott Reilly (aka coffee2code) 
     28 
     29    This program is free software; you can redistribute it and/or 
     30    modify it under the terms of the GNU General Public License 
     31    as published by the Free Software Foundation; either version 2 
     32    of the License, or (at your option) any later version. 
     33 
     34    This program is distributed in the hope that it will be useful, 
     35    but WITHOUT ANY WARRANTY; without even the implied warranty of 
     36    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     37    GNU General Public License for more details. 
     38 
     39    You should have received a copy of the GNU General Public License 
     40    along with this program; if not, write to the Free Software 
     41    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA. 
    3842*/ 
    3943 
     
    4347    private static $admin_options_name = 'c2c_admin_expert_mode'; 
    4448    private static $field_name         = 'admin_expert_mode'; 
    45     private static $textdomain         = 'admin-expert-mode'; 
    4649    private static $prompt             = ''; 
    4750    private static $help_text          = ''; 
     
    5760     */ 
    5861    public static function version() { 
    59         return '1.8'; 
     62        return '1.8.1'; 
    6063    } 
    6164 
     
    7275     */ 
    7376    public static function do_init() { 
    74         load_plugin_textdomain( self::$textdomain, false, basename( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'lang' ); 
    75  
    76         self::$prompt =    __( 'Expert mode', self::$textdomain ); 
    77         self::$help_text = __( 'Enable expert mode (if you are familiar with WordPress and don\'t need the inline documentation in the admin).', self::$textdomain ); 
     77        load_plugin_textdomain( 'admin-expert-mode', false, basename( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'lang' ); 
     78 
     79        self::$prompt =    __( 'Expert mode', 'admin-expert-mode' ); 
     80        self::$help_text = __( 'Enable expert mode (if you are familiar with WordPress and don\'t need the inline documentation in the admin).', 'admin-expert-mode' ); 
    7881 
    7982        add_action( 'admin_notices',         array( __CLASS__, 'display_activation_notice' ) ); 
     
    110113        if ( get_transient( 'aem_activated' ) ) { 
    111114            if ( self::is_admin_expert_mode_active() ) 
    112                 $msg = __( 'Expert mode is now enabled for you since you had it previously enabled. You can disable it in your <a href="%s" title="Profile">profile</a>. Reminder: other admins must separately enable expert mode for themselves via their own profiles. (See the readme.txt for more advanced controls.)', self::$textdomain ); 
     115                $msg = __( 'Expert mode is now enabled for you since you had it previously enabled. You can disable it in your <a href="%s" title="Profile">profile</a>. Reminder: other admins must separately enable expert mode for themselves via their own profiles. (See the readme.txt for more advanced controls.)', 'admin-expert-mode' ); 
    113116            else 
    114                 $msg = __( '<strong>NOTE:</strong> You must enable expert mode for yourself (in your <a href="%s" title="Profile">profile</a>) for it to take effect. Other admin users must do the same for themselves as well. (See the readme.txt for more advanced controls.)', self::$textdomain ); 
     117                $msg = __( '<strong>NOTE:</strong> You must enable expert mode for yourself (in your <a href="%s" title="Profile">profile</a>) for it to take effect. Other admin users must do the same for themselves as well. (See the readme.txt for more advanced controls.)', 'admin-expert-mode' ); 
    115118            $msg = sprintf( $msg, admin_url( 'profile.php' ) ); 
    116119            echo "<div id='message' class='updated fade'><p>$msg</p></div>"; 
     
    200203 
    201204endif; // end if !class_exists() 
    202  
    203 ?> 
  • admin-expert-mode/trunk/readme.txt

    r476072 r555981  
    33Donate link: http://coffee2code.com/donate 
    44Tags: admin, expert, help, remove inline documentation, coffee2code 
     5License: GPLv2 or later 
     6License URI: http://www.gnu.org/licenses/gpl-2.0.html 
    57Requires at least: 2.8 
    6 Tested up to: 3.3 
    7 Stable tag: 1.8 
    8 Version: 1.8 
     8Tested up to: 3.4 
     9Stable tag: 1.8.1 
     10Version: 1.8.1 
    911 
    1012Allow users with access to the administration section to hide inline documentation and help text, which generally target beginning users. 
     
    137139 
    138140== Changelog == 
     141 
     142= 1.8.1 = 
     143* Use string instead of variable to specify translation textdomain 
     144* Re-license as GPLv2 or later (from X11) 
     145* Add 'License' and 'License URI' header tags to readme.txt and plugin file 
     146* Remove ending PHP close tag 
     147* Note compatibility through WP 3.4+ 
    139148 
    140149= 1.8 = 
     
    212221== Upgrade Notice == 
    213222 
     223= 1.8.1 = 
     224Trivial update: noted compatibility through WP 3.4+; explicitly stated license 
     225 
    214226= 1.8 = 
    215227Recommended update. Highlights: various code improvements; enqueue CSS; noted compatibility through WP 3.3+ 
Note: See TracChangeset for help on using the changeset viewer.