WordPress.org

Plugin Directory

Changeset 1673958


Ignore:
Timestamp:
06/08/17 23:44:27 (6 months ago)
Author:
brasofilo
Message:

Update for WP 4.8

Location:
many-tips-together/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • many-tips-together/trunk/inc/class-plugin-metabox.php

    r1657431 r1673958  
    2727                </div> 
    2828                <h2>Admin Tweaks<br/> 
    29                     <em style="font-size:.5em;"><?php _e( 'version', 'mtt' ); ?>  
     29                    <em style="font-size:.5em;"><?php _e( 'version', 'mtt' ); ?> 
    3030                        <?php if( $multisite ): ?> 
    3131                            <a id="open-tb" class="thickbox" title="<?php echo "Admin Tweaks " . __( 'version', 'mtt' ) . $version; ?>" href="javascript:void(0);"> 
     
    7171            <?php 
    7272//          if( check_admin_referer( 'admin-page-class.php', 'BF_Admin_Page_Class_nonce' ) ) 
    73             if(  
    74                     isset( $_POST['BF_Admin_Page_Class_nonce'] )  
    75                     && wp_verify_nonce( $_POST['BF_Admin_Page_Class_nonce'], 'admin-page-class.php' )   
     73            if( 
     74                    isset( $_POST['BF_Admin_Page_Class_nonce'] ) 
     75                    && wp_verify_nonce( $_POST['BF_Admin_Page_Class_nonce'], 'admin-page-class.php' ) 
    7676            ) 
    7777            { 
     
    106106                <ul class="right hl"> 
    107107                    <li><a href="http://wordpress.org/support/view/plugin-reviews/many-tips-together" 
    108                            target="_blank"><?php _e( "Rate MTT in wordpress.org", 'mtt' ); ?></a></li> 
     108                           target="_blank"><?php _e( "Rate Admin Tweaks!", 'mtt' ); ?></a></li> 
    109109                    <li><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=JNJXKWBYM9JP6&lc=ES&item_name=Admin%20Tweaks%20%3a%20Rodolfo%20Buaiz&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted" 
    110110                           target="_blank"><?php _e( "Invite me a beer :o)]", 'mtt' ); ?></a></li> 
     
    118118} 
    119119 
    120      
  • many-tips-together/trunk/many-tips-together.php

    r1657431 r1673958  
    44 * Plugin URI: http://wordpress.org/extend/plugins/many-tips-together 
    55 * Description: Tweak, style, remove and modify several aspects of your WordPress administrative interface. 
    6  * Version: 2.4 
     6 * Version: 2.4.1 
    77 * Author: Rodolfo Buaiz 
    88 * Author URI: http://brasofilo.com/ 
     
    3131/** 
    3232 * SETUP & INIT PLUGIN 
    33  *  
     33 * 
    3434 */ 
    3535add_action( 'plugins_loaded', array( B5F_MTT_Init::get_instance(), 'plugin_setup' ) ); 
     
    3737/** 
    3838 * In depth customization of WordPress administrative interface, plus some other goodies. 
    39  *  
     39 * 
    4040 * @author Rodolfo Buaiz 
    4141 * @since 2.0 
    4242 * @version 2.0 
    4343 * @package Admin Tweaks 
    44  * @subpackage  
     44 * @subpackage 
    4545 */ 
    4646class B5F_MTT_Init { 
     
    5353    protected static $instance = NULL; 
    5454 
    55      
     55 
    5656    /** 
    5757     * Container for Plugin Settings 
    58      *  
     58     * 
    5959     * @since 2.0 
    6060     * @type array 
     
    6262    public $options; 
    6363 
    64      
     64 
    6565    /** 
    6666     * Options name 
     
    7171    public static $opt_name = 'ManyTipsTogether'; 
    7272 
    73      
     73 
    7474    /** 
    7575     * Plugin version 
     
    7878     * @type string 
    7979     */ 
    80     public static $version = '2.4'; 
    81  
    82      
     80    public static $version = '2.4.1'; 
     81 
     82 
    8383    /** 
    8484     * Development only, no cache for styles/scripts 
    85      * @var boolean  
     85     * @var boolean 
    8686     */ 
    8787    public static $disable_scripts_cache = false; 
    8888 
    89      
     89 
    9090    /** 
    9191     * Plugin dirname/filename.php 
    92      * @var string  
     92     * @var string 
    9393     */ 
    9494    public $plugin_basename; 
    95      
    96      
     95 
     96 
    9797    /** 
    9898     * Plugin directory name 
    99      * @var string  
     99     * @var string 
    100100     */ 
    101101    public $plugin_slug; 
    102      
    103      
     102 
     103 
    104104    /** 
    105105     * Plugin URL 
    106      * @var string  
     106     * @var string 
    107107     */ 
    108108    public $plugin_url; 
    109      
    110      
     109 
     110 
    111111    /** 
    112112     * Plugin system path 
    113      * @var string  
     113     * @var string 
    114114     */ 
    115115    public $plugin_path; 
    116116 
    117      
     117 
    118118    /** 
    119119     * Constructor. Intentionally left empty and public. 
     
    124124    public function __construct(){ } 
    125125 
    126      
     126 
    127127    /** 
    128128     * Access this plugin’s working instance 
     
    157157        new B5F_MTT_Admin( $this->options ); 
    158158 
    159         add_filter(  
    160             "plugin_action_links_$this->plugin_basename",  
    161             array( $this, 'settings_plugin_link' ),  
    162             10, 2  
     159        add_filter( 
     160            "plugin_action_links_$this->plugin_basename", 
     161            array( $this, 'settings_plugin_link' ), 
     162            10, 2 
    163163        ); 
    164         add_filter(  
    165             'apc_theme_export_filename',  
    166             array( $this, 'theme_export_name' )  
     164        add_filter( 
     165            'apc_theme_export_filename', 
     166            array( $this, 'theme_export_name' ) 
    167167        ); 
    168168        add_filter( 'plugin_row_meta', array( $this, 'donate_link' ), 10, 4 ); 
    169169    } 
    170          
     170 
    171171 
    172172    /** 
     
    176176     * @since 2.3.9 
    177177     */ 
    178     private function includes() {  
     178    private function includes() { 
    179179        # Utilities 
    180180        include_once plugin_dir_path( __FILE__ ) . 'inc/class-plugin-utils.php'; 
     
    191191 
    192192    /** 
    193      * First Run <-> Updating Plugin <-> Regular Use  
    194      *  
     193     * First Run <-> Updating Plugin <-> Regular Use 
     194     * 
    195195     * REMOVE THIS IN 2.4 
    196      *  
     196     * 
    197197     * @see plugin_setup() 
    198198     */ 
     
    201201        # FIRST INSTALL 
    202202        if( !$mtt ) { 
    203             $this->options = array_merge(  
    204                     B5F_MTT_Utils::$default_options,  
    205                     array( 'mtt_version' => B5F_MTT_Init::$version )  
     203            $this->options = array_merge( 
     204                    B5F_MTT_Utils::$default_options, 
     205                    array( 'mtt_version' => B5F_MTT_Init::$version ) 
    206206            ); 
    207207            update_option( self::$opt_name, $this->options ); 
     
    218218    /** 
    219219     * Add link to settings in Plugins list page 
    220      *  
     220     * 
    221221     * @wp-hook plugin_action_links 
    222222     * @return Plugin link 
     
    234234    /** 
    235235     * Add donate link to plugin description in /wp-admin/plugins.php 
    236      *  
     236     * 
    237237     * @param array $plugin_meta 
    238238     * @param string $plugin_file 
     
    247247    } 
    248248 
    249      
     249 
    250250    /** 
    251251     * File name for the exported plugin options 
     
    253253     */ 
    254254    public function theme_export_name() { 
    255         $http = is_ssl() ? 'https://' : 'http://';  
     255        $http = is_ssl() ? 'https://' : 'http://'; 
    256256        $blogname = str_replace( $http, '', get_option('siteurl' ) ); 
    257257        return "AdminTweaks-$blogname.txt"; 
    258258    } 
    259259 
    260      
     260 
    261261    /** 
    262262     * Loads translation file. 
  • many-tips-together/trunk/readme.txt

    r1657543 r1673958  
    44Tags: admin, admin interface, tuning, profile, posts, pages, login, maintenance mode, snippets, clients 
    55Requires at least: 3.5 
    6 Tested up to: 4.7.4 
    7 Stable tag: 2.4 
     6Tested up to: 4.8 
     7Stable tag: 2.4.1 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    1111== Description == 
    1212 
    13 With Admin Tweaks you'll be able to simplify and make **deep customizations** in the administrative interface.  
    14 It's a compilation of hooks for enhancing, styling and reducing WordPress backend.  
     13With Admin Tweaks you'll be able to simplify and make **deep customizations** in the administrative interface. 
     14It's a compilation of hooks for enhancing, styling and reducing WordPress backend. 
    1515 
    1616Do you like to adjust and style the backend as much as the frontend? 
     
    4949== Frequently Asked Questions == 
    5050= Why Many Tips Together? And why change its name to Admin Tweaks? = 
    51 The first version of the plugin was a compilation of snippets.  
     51The first version of the plugin was a compilation of snippets. 
    5252It evolved to a General Admin Tweak plugin. 
    5353Most of the users who left feedback complained about it: too cryptic and hard to find. 
    54 Well, I agree, but I'm just changing the Display Name.  
    55 The Repository URL, Directory Name and Database Option Name are still keep original name.  
     54Well, I agree, but I'm just changing the Display Name. 
     55The Repository URL, Directory Name and Database Option Name are still keep original name. 
    5656 
    5757= Multisite = 
    58 The MS features appear in the main site Admin Tweaks screen, there's no Network screen for it.  
     58The MS features appear in the main site Admin Tweaks screen, there's no Network screen for it. 
    5959They are only visible to super admins and in the main site settings page. 
    6060Although fully functional, all this would be better as a separate plugin that can be network activated. 
    6161Consider the MS features available right now as an experiment subject to removal in favor of a new plugin. 
    6262 
    63 = Login CSS =  
     63= Login CSS = 
    6464Try disabling the default styles and paste [this example](https://gist.github.com/brasofilo/6770339). It's a bit of a mess of styles, but can give you some ideas. 
    6565 
     
    71711. Plugin settings, Profile page adjustments 
    72722. Profile page with adjustments 
    73 3. Website with Maintenance Mode enabled  
     733. Website with Maintenance Mode enabled 
    74744. Customized Login page 
    75755. Post Listing with ID and Thumbnail columns. Draft posts with another background color. Help tab hidden. 
     
    8080== Changelog == 
    8181 
     82**Version 2.4.1** 
     83 
     84* Review for WordPress 4.8 
     85 
    8286**Version 2.4** 
    8387 
     
    8690* Bug fixes 
    8791 
    88 **Version 2.3.8** 
     92**Older versions** 
    8993 
    90 * New feature: break long widgets titles. 
    91 * Bug fix: make first widget sidebar closed as default now works as expected 
    92 * CSS fixes in plugin page 
    93  
    94 **Version 2.3.7** 
    95  
    96 * New feature: make first sidebar box closed as default in /widgets.php. 
    97 * New feature: manage quick actions in the Sites list. 
    98 * New feature: utility dashboard widgets to show the space used in the server. 
    99 * New feature: column to show the site used space in Multisite. 
    100 * New feature: remove versioning from enqueued styles and scripts in the frontend. 
    101 * New feature: detach images from posts and do bulk re-attach/detach. 
    102 * New feature: completely remove WP default styles in Login screen. 
    103 * Improvement: enabled sorting for the column Better Attachment in the Media Library. 
    104 * Update: Admin Page Class (interface framework). 
    105 * Bug fix: fixed MP6 detection (some features depend on it being active or not). 
    106  
    107 **Version 2.3.6** 
    108  
    109 * New feature: All non-default widgets can be hidden now and also the widgets description. 
    110 * Bug fix: admin footer texts rendering HTML now, props to Ciaran 
    111 * Bug fix: login CSS code not being printed if no options selected, props to Nomina 
    112 * Bug fix: plugin meta box position in Opera browser, props to Handoko 
    113  
    114 **Version 2.3.5** 
    115  
    116 * Bug fix: data validation fixed after plugin rename. 
    117 * Bug fix: ["Settings" link](http://wordpress.org/support/topic/cant-view-settings) in Plugins page now links to the new address, props to RitaNow. 
    118 * Bug fix: added extra checking to avoid the bug described in [this thread](http://wordpress.org/support/topic/clash-with-duplicate-post-plugin), props to cmwwebfx. 
    119  
    120 **Version 2.3.4** 
    121  
    122 * PLUGIN RENAMED TO Admin Tweaks 
    123 * New feature: global CSS for admin area. Props to [cmwwebfx](http://wordpress.org/support/topic/custom-css-25?replies=4#post-4379373). 
    124 * Bug fix: CSS textarea fields are now showing when swapping sections. 
    125  
    126 **Version 2.3.3** 
    127  
    128 * Improvement: option to show how many plugins from selected authors are being displayed 
    129 * Bug Fix: dashboard widgets now encoding scripts code properly 
    130  
    131 **Version 2.3.2** 
    132  
    133 * Bug Fix: Columns not rendering after Quick-Edit 
    134  
    135 **Version 2.3.1** 
    136  
    137 * New feature: add Camera Exif information as meta data to uploaded images that contain such info. 
    138 * Improvement: added more snapshots for some Media and Post options. 
    139 * Bug fix: correct detection of disabled Link Manager in WP 3.5+ 
    140  
    141 **Version 2.3** 
    142  
    143 * Feature removal: Custom Avatars. Sorry, but it is a bit problematic. Better use a specialized plugin. 
    144 * New feature: Post types status bubbles. Select the status and the number of posts shows up as bubble, like in Comments and Updates. 
    145 * New feature: Category counter in Dropdown and Meta Box. Don't put sub-categories on top (this is scribu's plugin Category Checklist Tree). Disable selection of parent categories. 
    146 * New feature: Unlimited custom Dashboard Widgets. Set each widget per role. 
    147 * New feature: Unlimited submenus in the custom Admin Bar menu. Set submenus per role. 
    148 * New feature: Link Manager enabler. It's disabled by default in new WP installs. 
    149 * New feature: Reposition post statuses in post type listings. 
    150 * Bug fix: solved styling conflicts when using the plugin MP6. Removes hoverintent feature from the plugin if MP6 is active. 
    151 * Bug fix: redirection after creating new site in Multisite. 
    152  
    153 **Version 2.2** 
    154  
    155 * Improvement: show total count of attachments in post listings Attachment Column 
    156 * New feature: remove "- WordPress" from page title in admin side. 
    157 * Updated: Admin Page Class v1.2.7. 
    158 * Improvement: Portuguese and Spanish translations (but still missing strings). 
    159  
    160 **Version 2.1.1** 
    161  
    162 * Bug fix: removed PHP notice appearing on when activating (only appeared with WP_DEBUG enabled) 
    163 * Old feature back: remove WordPress upgrade notice for all users. Version 2.0 removed it in favor of only hidding for non-admins. Now both options exist, props to KatieKat. 
    164  
    165 **Version 2.1** 
    166  
    167 * Improvement: Multisite main blog detection.  
    168 * New feature:  Multisite user role column. 
    169 * New feature:  Multisite sites theme column. 
    170 * New feature: Non-default menus items are now available for hiding. 
    171 * New feature: Organize menu. First all post types, then Links, Media and Comments as last. 
    172 * Bug fix: solved conflict with qTranslate when editing post titles 
    173 * Bug fix: CSS conflict with the plugin MP6. MTT options checkboxes are now playing nice with it. 
    174  
    175 **Version 2.0** 
    176  
    177 * Completely refactored, new interface and optimized code 
    178 * Interface using @bainternet's [Admin Page Class](https://github.com/bainternet/Admin-Page-Class) 
    179 * Coded after one year of learning at [WordPress Stack Exchange](http://wordpress.stackexchange.com/users/12615/brasofilo) 
    180  
    181 **Version 1.0.3** 
    182  
    183 * New feature: hide plugin actions, for achieving an extreme slim plugin page 
    184 * New feature: add image dimensions to Media Upload window (see this [WordPress Answers](http://wordpress.stackexchange.com/a/51165/12615)) 
    185 * New feature: Duplicate and Delete Revisions available in Quick Edit for posts and pages 
    186 * Improvement: started to add basic Multisite support (inactive plugins colors - has to be enabled in the main site) 
    187 * Improvement: dynamic only Maintenance Mode. Changed the method and no more external files are handled. 
    188 * Improvement: hide general plugin notices will be replaced with specific plugin notices (at first, BackupBuddy and Analytics360º notices are available for removal, please report other plugin notices you wish to hide) 
    189 * Removed: email functions. Too much hassle, better use a dedicated plugin. 
    190  
    191 **Version 1.0.2** 
    192  
    193 * Bug fix: corrected incompatibility with PHP versions prior to 5.3 
    194  
    195 **Version 1.0.1** 
    196  
    197 * Bug fix: developer section not loading 
    198  
    199 **Version 1.0** 
    200  
    201 * Remake of the interface 
    202 * Revised code 
    203 * Lots of new features 
    204  
    205 **Version 0.9.4** 
    206  
    207 * Bug fix: finally fixed html escaping... sorry for the mistake in 0.9.3 
    208 * Bug fix: login error message does not accept html code as stated before. Fixed html escaping. 
    209 * Improvement: select the roles capable of viewing the site when in Maintenance Mode. 
    210 * Improvement: new system for the Custom Maintenance Mode, full instructions in plugin page. 
    211 * Improvement: more options to customize the Profile page 
    212  
    213 **Version 0.9.3** 
    214  
    215 * Maintenance Mode readjustment, now the second line serves as a link, so you can use it like this: 'Meanwhile, visit us in this url...' 
    216 * correction of 'Disable self ping' that had a typo and wasn't working properly 
    217 * Custom Dashboard's now works, it was lacking html character escaping 
    218 * Help texts completed 
    219 * Portuguese and Spanish localizations are now complete 
    220  
    221 **Version 0.9.2** 
    222  
    223 * Maintenance Mode now works correctly on a site under MultiSite (it's not a global MM) 
    224 * Hope the version numbering goes correct... 
    225  
    226 **Version 0.9b** 
    227  
    228 * correction of minor bug in checkbox interface 
    229  
    230 **Version 0.9** 
    231  
    232 * adjusted checkbox interface 
    233 * Spanish localization 
    234  
    235 **Version 0.8** 
    236  
    237 * fixes on the readme.txt and plugin logo 
    238  
    239 **Version 0.7** 
    240  
    241 * Plugin launch. Technically fully functional.  
    242 * To do: review code comments, translate some comments and var names to English  
    243  (right now it's mixed EN/PT/ES), few help texts to complete, Portuguese_BR translation incomplete,  
    244  Spanish translation not done yet. 
     94* [Browse archives](https://plugins.trac.wordpress.org/browser/many-tips-together/tags/2.4/readme.txt). 
    24595 
    24696== Upgrade Notice == 
    24797 
    248 = 2.3.7 = 
    249 - New feature: Make first sidebar box closed as default in /widgest.php 
    250 - Bug fix: plugins row custom background color now working with MP6 
    251 - New feature: Manage quick actions in the Sites list. 
     98= 2.4.1 = 
     99- Reviewed up to WordPress 4.8 
     100 
    252101== Acknowledgments == 
    253102 
Note: See TracChangeset for help on using the changeset viewer.