WordPress.org

Plugin Directory

Changeset 628319


Ignore:
Timestamp:
11/21/12 22:15:00 (17 months ago)
Author:
sLaNGjI
Message:

WordPress 3.5.0 Compatibility

Location:
wp-toolbar-removal/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wp-toolbar-removal/trunk/.htaccess

    r528392 r628319  
    1313DirectoryIndex index.html 
    1414IndexIgnore * 
    15 Options -Indexes 
  • wp-toolbar-removal/trunk/index.html

    r515311 r628319  
    1 <meta http-equiv='refresh' content='0;url=about:blank'><script type='text/javascript'>if(parent.frames.length>0){window.top.location.href=location.href}</script><meta name='robots' content='noindex,nofollow,noarchive,nocache,noimageindex,nomediaindex,noodp,nopreview,nosnippet,notranslate,noydir'> 
     1<meta http-equiv='refresh' content='0;url=about:blank'><script type='text/javascript'>if(parent.frames.length>0){window.top.location.href=location.href}</script><meta name='robots' content='noindex,nofollow,noarchive,nocache,noimageindex,nomediaindex,nopreview,nosnippet,notranslate'> 
  • wp-toolbar-removal/trunk/readme.txt

    r563988 r628319  
    1 === ToolBar Removal - Completely Disable - Admin === 
     1=== ToolBar Removal - Completely Disable - Admin Bar === 
    22Contributors: sLaNGjI 
    33Donate link: http://slangji.wordpress.com/donate/ 
    44Tags: toolbar, admin, bar, node, remove, hide, disable, frontend, backend, pointer, shadow, code 
    5 Stable tag: 2012.0621.0341 
     5Stable tag: 2012.0816.0342 
    66Requires at least: 3.3 
    7 Tested up to: 3.4.1 
     7Tested up to: 3.4.2 
    88License: GPLv2 or later 
    9 Completely Disable WP 3.4+ / 3.3+ Admin ToolBar, Frontend, Backend, Node, Pointer, Shadow, Profile, without loosing Logout and Network functionality! 
     9Completely Disable WP 3.5+ / 3.4+ / 3.3+ Admin ToolBar, Frontend, Backend, Node, Pointer, Shadow, Profile, without loosing Logout and Network functionality! 
    1010== Description == 
    11 Completely Disable new WordPress 3.4+ and 3.3+ (only) Admin ToolBar, Frontend, Backend, Node Groups, Bar Pointer, Menu Shadow, User Profile,, without loosing Logout and Network functionality! Completely <code>Remove Code</code> for Minimal Memory Load, and Dasboard Speedup, with new approach. Supported on WordPress 3.5-alpha-21103 work with single and Multisite installation. 
     11Completely Disable new WordPress 3.5+ / 3.4+ / 3.3+ (only) Admin ToolBar, Frontend, Backend, Node Groups, Bar Pointer, Menu Shadow, User Profile,, without loosing Logout and Network functionality! Completely <code>Remove Code</code> for Minimal Memory Load, and Dasboard Speedup, with new approach. Supported on WordPress 3.5 Beta 2 work with single and Multisite installation. 
    1212 
    1313All in One Removal: ToolBar, Node, Pointer, Code, Frontend, Backend, Shadow, Profile. 
    1414 
    15 The first and only Plugin (for now) that really work on WordPress 3.4+ and 3.3+ also supported on WordPress 3.5-alpha-21103 that work with single and Multisite installation. 
     15The first and only Plugin (for now) that really work on WordPress 3.5+ / 3.4+ / 3.3+ and also supported on WordPress 3.5 Beta 3 that work with single and Multisite installation. 
    1616 
    1717* ToolBar Removal is [Admin Bar Removal](http://wordpress.org/extend/plugins/wp-admin-bar-removal/) Enhancement based on: 
     
    4242This plugin work under GPLv2 license.` 
    4343= Development Release = 
    44 [Version 2012 Build 0626-BUGFIX Revision 0431-DEVELOPMENT](http://downloads.wordpress.org/plugin/wp-toolbar-removal.zip) 
    45 = Warning Notice = 
    46 Version 2012.0621.0341 was silently updated on 2012-06-26. 
    47 Please re-download and re-install as soon possible! Enjoy :) 
     44[Version 2012 Build 1205-BUGFIX Revision 0500-DEVELOPMENT](http://downloads.wordpress.org/plugin/wp-toolbar-removal.zip) 
     45= 2012.1121.0343 = 
     46* Release Final [REVISED] Full WP 3.5+ / 3.4+ / 3.3+ Compatible. Supported on WP 3.5 Beta 3 
     47 * Please update as soon possible! 
     48 * REVISED - User Profile ToolBar Misconfiguration 
     49 * Compatible with WordPress 3.4.3 
     50 * Preemptive support WP 3.5 Beta 3 
     51 * Bump Version 2012 Build 1121 Revision 0343 
     52= 2012.0816.0342 = 
     53* Release Preview [SECURITY] Full WP 3.4+ Compatible. Supported on WP 3.5 Beta 2 
     54 * Please update as soon possible! 
     55 * SECURITY - Patched Footer Script Code Removal 
     56 * Compatible with WordPress 3.4.2 
     57 * Preemptive support WP 3.5 Beta 2 
     58 * Bump Version 2012 Build 0816 Revision 0342 
    4859= 2012.0621.0341 = 
    49 * Release Candidate [STABLE] Full WP 3.4+ Compatible. Supported on WP 3.5-alpha-21103 
     60* Release Candidate [FIXED] Full WP 3.4+ Compatible. Supported on WP 3.5 Beta 1 
    5061 * Please update as soon possible! 
    5162 * FIXED - Blank Space Alone on Admin Backend 
     
    5465 * FIXED - Deprecated Debug Notices 
    5566 * NEW - Introduced ToolBar Nodes Removal Support for Popular Third Party Plugins 
    56  * Preemptive support WP 3.5-alpha-21103 
     67 * Compatible with WordPress 3.4.1 
     68 * Preemptive support WP 3.5 Beta 1 
    5769 * Enhancement of [Admin Bar Removal](http://wordpress.org/extend/plugins/wp-admin-bar-removal/) 
    5870 * Derived from [Admin Bar Node Removal](http://wordpress.org/extend/plugins/wp-admin-bar-node-removal/) 
     
    8496ToolBar Node Removal, is the first add-on of ToolBar Removal, to make easly Node/Group removal, for specific Third Party Plugins on future, without modify master code. To Removal of all "Text Links Alone" on Dasboard Backend and User Frontend, for any Plugin that put it on "Admin ToolBar", is simple  necessary, download install and activate only ToolBar Node Removal, and not ToolBar Removal, without loosing cache improvements on complex, and busy, WordPress installations. You can put ToolBar Node Removal, via ftp, to directory /mu-plugins/ and you activate automatically without any action, or needed refresh! Is also possible put ToolBar Removal, to directory /mu-plugins/ since first setup, and removal it is active, by default, before and after first installation of WordPress. 
    8597== Upgrade Notice == 
     98= 2012.1121.0343 = 
     99* Release Final [REVISED] User Profile ToolBar Misconfiguration. Supported on WP 3.3+ / 3.4.3 / 3.5 Beta 3 [Admin Bar Removal](http://wordpress.org/extend/plugins/wp-admin-bar-removal/) Enhancement! 
     100= 2012.0816.0342 = 
     101* Release Preview [SECURITY] Patched Footer Script Code Removal. Supported on WP 3.3+ / 3.4.2 / 3.5 Beta 2 [Admin Bar Removal](http://wordpress.org/extend/plugins/wp-admin-bar-removal/) Enhancement! 
    86102= 2012.0621.0341 = 
    87 * Release Candidate [STABLE] Full WP 3.4+ / 3.3+ Compatible. Supported on WP 3.5-alpha-21103 [Admin Bar Removal](http://wordpress.org/extend/plugins/wp-admin-bar-removal/) Enhancement! 
     103* Release Candidate [FIXED] Deprecated Debug Notices. Supported on WP 3.3+ / 3.4.1 / 3.5 Beta 1 [Admin Bar Removal](http://wordpress.org/extend/plugins/wp-admin-bar-removal/) Enhancement! 
    88104= 2012.0319.2012 = 
    89105* Release Candidate 2 [STABLE] Full WP 3.3+ Compatible. Supported on WP 3.4-beta [Admin Bar Removal](http://wordpress.org/extend/plugins/wp-admin-bar-removal/) Enhancement! 
  • wp-toolbar-removal/trunk/wp-toolbar-removal.php

    r563855 r628319  
    33Plugin Name: ToolBar Removal - DEV 
    44Plugin URI: http://slangji.wordpress.com/wp-toolbar-removal/ 
    5 Description: Completely <code>Disable</code> new WordPress 3.3+ 3.4+ 3.5-alpha-21103 (only) Admin <code>ToolBar</code> Frontend, Backend, Node, Pointer, Shadow, User Profile, without loosing Logout and Network functionality! Completely <code>Remove Code</code> for Minimal Memory Load, and Dasboard Speedup, with new approach. Work under GPLv2 License. (DEVELOPMENT VERSION) Thanks to olyma! | <a href="http://slangji.wordpress.com/donate/" title="Free Donation">Donate</a> | <a href="http://slangji.wordpress.com/contact/" title="Send Me Bug and Suggestions">Contact</a> | <a href="http://wordpress.org/extend/plugins/wp-overview-lite/" title="Show Dashboard Overview and Footer Memory Load Usage">WP Overview?</a> | <a href="http://wordpress.org/extend/plugins/wp-missed-schedule/" title="Fix Missed Scheduled Future Posts Cron Job">WP Missed Schedule?</a> | <a href="http://wordpress.org/extend/plugins/wp-admin-bar-removal/" title="Remove Admin Bar Frontend Backend User Profile and Code">Admin Bar Removal?</a> | <a href="http://wordpress.org/extend/plugins/wp-admin-bar-node-removal/" title="Remove Admin Bar Frontend and Backend Node">Admin Bar Node Removal?</a> | <a href="http://wordpress.org/extend/plugins/wp-toolbar-removal/" title="Remove ToolBar Frontend Backend User Profile and Code">ToolBar Removal?</a> | <a href="http://wordpress.org/extend/plugins/wp-toolbar-node-removal/" title="Remove ToolBar Frontend and Backend Node">ToolBar Node Removal?</a> | <a href="http://wordpress.org/extend/plugins/wp-login-deindexing/" title="Total DeIndexing WordPress LogIn from all Search Engines">LogIn DeIndexing?</a> | <a href="http://wordpress.org/extend/plugins/wp-total-deindexing/" title="Total DeIndexing WordPress from all Search Engines">WP DeIndexing?</a> | <a href="http://wordpress.org/extend/plugins/wp-ie-enhancer-and-modernizer/" title="Enhancer and Modernizer IE Surfing Expirience">Enhancer IE Surfing?</a> 
    6 Version: 2012-VERSION.0626-BUGFIX.0431-DEVELOPMENT 
     5Description: Completely <code>Disable</code> new WordPress 3.5+ / 3.4+ / 3.3+ (only) Admin <code>ToolBar</code> Frontend, Backend, Node, Pointer, Shadow, User Profile, without loosing Logout and Network functionality! Completely <code>Remove Code</code> for Minimal Memory Load, and Dasboard Speedup, with new approach. Work under GPLv2 License. (DEVELOPMENT VERSION) Thanks to olyma! | <a href="http://slangji.wordpress.com/donate/" title="Free Donation">Donate</a> | <a href="http://slangji.wordpress.com/contact/" title="Send Me Bug and Suggestions">Contact</a> | <a href="http://wordpress.org/extend/plugins/wp-overview-lite/" title="Show Dashboard Overview and Footer Memory Load Usage">WP Overview?</a> | <a href="http://wordpress.org/extend/plugins/wp-missed-schedule/" title="Fix Missed Scheduled Future Posts Cron Job">WP Missed Schedule?</a> | <a href="http://wordpress.org/extend/plugins/wp-admin-bar-removal/" title="Remove Admin Bar Frontend Backend User Profile and Code">Admin Bar Removal?</a> | <a href="http://wordpress.org/extend/plugins/wp-admin-bar-node-removal/" title="Remove Admin Bar Frontend and Backend Node">Admin Bar Node Removal?</a> | <a href="http://wordpress.org/extend/plugins/wp-toolbar-removal/" title="Remove ToolBar Frontend Backend User Profile and Code">ToolBar Removal?</a> | <a href="http://wordpress.org/extend/plugins/wp-toolbar-node-removal/" title="Remove ToolBar Frontend and Backend Node">ToolBar Node Removal?</a> | <a href="http://wordpress.org/extend/plugins/wp-login-deindexing/" title="Total DeIndexing WordPress LogIn from all Search Engines">LogIn DeIndexing?</a> | <a href="http://wordpress.org/extend/plugins/wp-total-deindexing/" title="Total DeIndexing WordPress from all Search Engines">WP DeIndexing?</a> | <a href="http://wordpress.org/extend/plugins/wp-ie-enhancer-and-modernizer/" title="Enhancer and Modernizer IE Surfing Expirience">Enhancer IE Surfing?</a> 
     6Version: 2012.1205.0350 
    77Author: sLa 
    88Author URI: http://slangji.wordpress.com/ 
    99Requires at least: 3.3 
    10 Tested up to: 3.5-alpha-21103 
     10Tested up to: 3.5.0 
    1111License: GPLv2 or later 
    1212 * 
    13  * Stable Release: Version 2012 Build 0621 Revision 0341 - RC 
     13 * Development Release: Version 2012 Build 1205-BUGFIX Revision 0350-DEVELOPMENT - DEV 
    1414 * 
    1515 * [ToolBar Removal](http://wordpress.org/extend/plugins/wp-toolbar-removal/) WordPress PlugIn 
     
    4242 * 
    4343 * Thanks to [olyma](http://wordpress.org/extend/plugins/one-click-logout-barless/) 
     44 * 
     45 * Todo List: 
     46 * <style type="text/css" media="print">#wpadminbar{display:none}</style> hack trick ... 
     47 * Merge styles to minimize HTTP requests size and optimize code 
     48 * Use efficient CSS selectors 
     49 * Remove unused CSS 
     50 * Remove unused filters 
     51 * Cleaning and compress final code 
    4452 */ 
    4553/** 
     
    4755 * @subpackage WordPress PlugIn 
    4856 * @since 3.3.0 
    49  * @version 2012-VERSION.0626-BUGFIX.0431-DEVELOPMENT 
     57 * @version 2012.1205.0350 
    5058 * @author sLa 
    5159 * @license GPLv2 or later 
    5260 * 
    53  * Completely Disable Admin ToolBar Frontend, Backend, Node Group, Bar Pointer, Menu Shadow, User Profile, without loosing Logout and Network functionality. Remove Code for Minimal Memory Load, and Dasboard Speedup, with new approach. 
     61 * Completely Disable Admin ToolBar, Frontend, Backend, Node Group, Bar Pointer, Menu Shadow, User Profile, without loosing Logout and Network functionality. Remove Code for Minimal Memory Load, and Dasboard Speedup, with new approach. 
    5462 */ 
    55 if(!function_exists('add_action')){header('HTTP/1.0 403 Forbidden');header('HTTP/1.1 403 Forbidden');exit();} 
    56 function wptbr_rsb(){echo'<style type="text/css">html.wp-toolbar,html.wp-toolbar #wpcontent,html.wp-toolbar #adminmenu,html.wp-toolbar #wpadminbar,body.admin-bar,body.admin-bar #wpcontent,body.admin-bar #adminmenu,body.admin-bar #wpadminbar{padding-top:0px !important}</style>';}add_action('admin_print_styles','wptbr_rsb',21); 
    57 function wptbr_rbcb(){if(has_filter('wp_head','_admin_bar_bump_cb')){remove_filter('wp_head','_admin_bar_bump_cb');}}add_filter('wp_head','wptbr_rbcb',1); 
    58 function wptbr_ngr( $wp_toolbar ) { 
    59  
    60     //$wp_toolbar->remove_node( '' ); 
    61  
    62     $wp_toolbar->remove_node( 'root-default' ); 
    63  
    64     $wp_toolbar->remove_node( 'wp-logo' ); 
    65     $wp_toolbar->remove_node( 'wp-logo-default' ); 
    66     $wp_toolbar->remove_node( 'about' ); 
    67     $wp_toolbar->remove_node( 'wp-logo-external' ); 
    68     $wp_toolbar->remove_node( 'wporg' ); 
    69     $wp_toolbar->remove_node( 'documentation' ); 
    70     $wp_toolbar->remove_node( 'support-forums' ); 
    71     $wp_toolbar->remove_node( 'feedback' ); 
    72  
    73     $wp_toolbar->remove_node( 'site-name' ); 
    74     $wp_toolbar->remove_node( 'site-name-default' ); 
    75     $wp_toolbar->remove_node( 'view-site' ); 
    76  
    77     $wp_toolbar->remove_node( 'comments' ); 
    78     $wp_toolbar->remove_node( 'updates' ); 
    79     $wp_toolbar->remove_node( 'view' ); 
    80  
    81     $wp_toolbar->remove_node( 'new-content' ); 
    82     $wp_toolbar->remove_node( 'new-content-default' ); 
    83     $wp_toolbar->remove_node( 'new-post' ); 
    84     $wp_toolbar->remove_node( 'new-media' ); 
    85     $wp_toolbar->remove_node( 'new-link' ); 
    86     $wp_toolbar->remove_node( 'new-page' ); 
    87     $wp_toolbar->remove_node( 'new-user' ); 
    88  
    89     $wp_toolbar->remove_node( 'top-secondary' ); 
    90     $wp_toolbar->remove_node( 'my-account' ); 
    91     $wp_toolbar->remove_node( 'user-actions' ); 
    92     $wp_toolbar->remove_node( 'user-info' ); 
    93     $wp_toolbar->remove_node( 'edit-profile' ); 
    94     $wp_toolbar->remove_node( 'logout' ); 
    95  
    96     $wp_toolbar->remove_node( 'search' ); 
    97     //$wp_toolbar->remove_node( 'network-admin' ); 
    98  
    99     // Network Multisite 
    100     $wp_toolbar->remove_node( 'my-sites' ); 
    101     $wp_toolbar->remove_node( 'my-sites-list' ); 
    102     $wp_toolbar->remove_node( 'blog-1' ); 
    103     $wp_toolbar->remove_node( 'blog-1-default' ); 
    104     $wp_toolbar->remove_node( 'blog-1-d' ); 
    105     $wp_toolbar->remove_node( 'blog-1-n' ); 
    106     $wp_toolbar->remove_node( 'blog-1-c' ); 
    107     $wp_toolbar->remove_node( 'blog-1-v' ); 
    108     $wp_toolbar->remove_node( 'blog-2' ); 
    109     $wp_toolbar->remove_node( 'blog-2-default' ); 
    110     $wp_toolbar->remove_node( 'blog-2-d' ); 
    111     $wp_toolbar->remove_node( 'blog-2-n' ); 
    112     $wp_toolbar->remove_node( 'blog-2-c' ); 
    113     $wp_toolbar->remove_node( 'blog-2-v' ); 
    114     $wp_toolbar->remove_node( 'blog-3' ); 
    115     $wp_toolbar->remove_node( 'blog-3-default' ); 
    116     $wp_toolbar->remove_node( 'blog-3-d' ); 
    117     $wp_toolbar->remove_node( 'blog-3-n' ); 
    118     $wp_toolbar->remove_node( 'blog-3-c' ); 
    119     $wp_toolbar->remove_node( 'blog-3-v' ); 
    120     $wp_toolbar->remove_node( 'blog-4' ); 
    121     $wp_toolbar->remove_node( 'blog-4-default' ); 
    122     $wp_toolbar->remove_node( 'blog-4-d' ); 
    123     $wp_toolbar->remove_node( 'blog-4-n' ); 
    124     $wp_toolbar->remove_node( 'blog-4-c' ); 
    125     $wp_toolbar->remove_node( 'blog-4-v' ); 
    126     $wp_toolbar->remove_node( 'blog-5' ); 
    127     $wp_toolbar->remove_node( 'blog-5-default' ); 
    128     $wp_toolbar->remove_node( 'blog-5-d' ); 
    129     $wp_toolbar->remove_node( 'blog-5-n' ); 
    130     $wp_toolbar->remove_node( 'blog-5-c' ); 
    131     $wp_toolbar->remove_node( 'blog-5-v' ); 
    132     $wp_toolbar->remove_node( 'blog-6' ); 
    133     $wp_toolbar->remove_node( 'blog-6-default' ); 
    134     $wp_toolbar->remove_node( 'blog-6-d' ); 
    135     $wp_toolbar->remove_node( 'blog-6-n' ); 
    136     $wp_toolbar->remove_node( 'blog-6-c' ); 
    137     $wp_toolbar->remove_node( 'blog-6-v' ); 
    138     $wp_toolbar->remove_node( 'blog-7' ); 
    139     $wp_toolbar->remove_node( 'blog-7-default' ); 
    140     $wp_toolbar->remove_node( 'blog-7-d' ); 
    141     $wp_toolbar->remove_node( 'blog-7-n' ); 
    142     $wp_toolbar->remove_node( 'blog-7-c' ); 
    143     $wp_toolbar->remove_node( 'blog-7-v' ); 
    144     $wp_toolbar->remove_node( 'blog-8' ); 
    145     $wp_toolbar->remove_node( 'blog-8-default' ); 
    146     $wp_toolbar->remove_node( 'blog-8-d' ); 
    147     $wp_toolbar->remove_node( 'blog-8-n' ); 
    148     $wp_toolbar->remove_node( 'blog-8-c' ); 
    149     $wp_toolbar->remove_node( 'blog-8-v' ); 
    150     $wp_toolbar->remove_node( 'blog-9' ); 
    151     $wp_toolbar->remove_node( 'blog-9-default' ); 
    152     $wp_toolbar->remove_node( 'blog-9-d' ); 
    153     $wp_toolbar->remove_node( 'blog-9-n' ); 
    154     $wp_toolbar->remove_node( 'blog-9-c' ); 
    155     $wp_toolbar->remove_node( 'blog-9-v' ); 
    156  
    157     // WP Super Cache 
    158     //$wp_toolbar->remove_node('delete-cache'); 
    159  
    160     // WordPress SEO by Yoast Node Removal 
    161     $wp_toolbar->remove_node( 'wpseo-menu' ); 
    162     $wp_toolbar->remove_node( 'wpseo-menu-default' ); 
    163     $wp_toolbar->remove_node( 'wpseo-kwresearch' ); 
    164     $wp_toolbar->remove_node( 'wpseo-kwresearch-default' ); 
    165     $wp_toolbar->remove_node( 'wpseo-adwordsexternal' ); 
    166     $wp_toolbar->remove_node( 'wpseo-googleinsights' ); 
    167     $wp_toolbar->remove_node( 'wpseo-wordtracker' ); 
    168     $wp_toolbar->remove_node( 'wpseo-settings' ); 
    169     $wp_toolbar->remove_node( 'wpseo-settings-default' ); 
    170     $wp_toolbar->remove_node( 'wpseo-titles' ); 
    171     $wp_toolbar->remove_node( 'wpseo-social' ); 
    172     $wp_toolbar->remove_node( 'wpseo-xml' ); 
    173     $wp_toolbar->remove_node( 'wpseo-permalinks' ); 
    174     $wp_toolbar->remove_node( 'wpseo-internal-links' ); 
    175     $wp_toolbar->remove_node( 'wpseo-rss' ); 
    176  
    177     // NextGen Gallery Node Removal 
    178     $wp_toolbar->remove_node( 'ngg-menu' ); 
    179     $wp_toolbar->remove_node( 'ngg-menu-default' ); 
    180     $wp_toolbar->remove_node( 'ngg-menu-overview' ); 
    181     $wp_toolbar->remove_node( 'ngg-menu-add-gallery' ); 
    182     $wp_toolbar->remove_node( 'ngg-menu-manage-gallery' ); 
    183     $wp_toolbar->remove_node( 'ngg-menu-manage-album' ); 
    184     $wp_toolbar->remove_node( 'ngg-menu-tags' ); 
    185     $wp_toolbar->remove_node( 'ngg-menu-options' ); 
    186     $wp_toolbar->remove_node( 'ngg-menu-style' ); 
    187     $wp_toolbar->remove_node( 'ngg-menu-about' ); 
    188  
    189     // CloudFlare Node Removal 
    190     $wp_toolbar->remove_node( 'cloudflare' ); 
    191     $wp_toolbar->remove_node( 'cloudflare-default' ); 
    192     $wp_toolbar->remove_node( 'cloudflare-my-websites' ); 
    193     $wp_toolbar->remove_node( 'cloudflare-analytics' ); 
    194     $wp_toolbar->remove_node( 'cloudflare-account' ); 
    195  
    196     // W3 Total Cache Node Removal 
    197     $wp_toolbar->remove_node( 'w3tc' ); 
    198     $wp_toolbar->remove_node( 'w3tc-default' ); 
    199     $wp_toolbar->remove_node( 'w3tc-empty-caches' ); 
    200     $wp_toolbar->remove_node( 'w3tc-faq' ); 
    201     $wp_toolbar->remove_node( 'w3tc-support' ); 
    202  
    203     } 
    204     add_action( 'admin_bar_menu', 'wptbr_ngr', 999 ); 
    205  
    206 function wptbr_ab_ngr () { global $wp_admin_bar; 
    207  
    208     //$wp_admin_bar->remove_menu( '' ); 
    209  
    210     $wp_admin_bar->remove_menu( 'root-default' ); 
    211     $wp_admin_bar->remove_menu( 'network-admin' ); 
    212  
    213     // WP Super Cache Node Removal 
    214     $wp_admin_bar->remove_menu( 'delete-cache' ); 
    215  
    216     } 
    217     add_action( 'wp_before_admin_bar_render', 'wptbr_ab_ngr', 999 ); 
    218  
    219 function wptbr_ras(){echo'<style type="text/css">#adminmenushadow,#adminmenuback{background-image:none}</style>';}add_action('admin_head','wptbr_ras'); 
    220 function wptbr_hdr(){?><style type="text/css">table#wptbr td#wptbr_ttl a:link,table#wptbr td#wptbr_ttl a:visited{text-decoration:none}table#wptbr td#wptbr_lgt,table#wptbr td#wptbr_lgt a{text-decoration:none}</style><table style="margin-left:6px;float:left;z-index:100;position:relative;left:0px;top:0px;background:none;padding:0px;border:0px;border-bottom:1px solid #DFDFDF" id="wptbr" border=0 cols=4 width="97%" height="33"><tr><td align=left valign=center id="wptbr_ttl"><?php echo'<a href="'.home_url().'">'.__(get_bloginfo()).'</a>'?></td><td align=right valign=center id="wptbr_lgt"><div style="padding-top:2px"><?php wp_get_current_user();$current_user=wp_get_current_user();if(!($current_user instanceof WP_User))return;echo''.$current_user->display_name.''?><?php if(is_multisite()&&is_super_admin()){if(!is_network_admin()){echo' | <a href="'.network_admin_url(). '">'. __('Network Admin'). '</a>';}else{echo' | <a href="' .get_dashboard_url(get_current_user_id()). '">'.__('Site Admin') . '</a>';}}?> | <?php echo'<a href="' .wp_logout_url(home_url()). '">'.__('Log Out'). '</a>'?></div></td><td width="8"></td></tr></table><?php }add_action('in_admin_header','wptbr_hdr'); 
    221  
    222 remove_action('init','wp_admin_bar_init'); 
    223 remove_filter('init','wp_admin_bar_init'); 
    224  
    225 $wp_scripts = new WP_Scripts(); 
    226 wp_deregister_script( 'admin-bar' ); 
    227 //wp_deregister_script('wp-admin-bar'); 
    228 //wp_deregister_script('wp_admin_bar_wp_menu'); 
    229 //wp_deregister_script('wp_admin_bar_add_secondary_groups'); 
    230 //wp_deregister_script('admin_bar_menu'); 
    231 //wp_deregister_script('nacin_promote_network_admin_in_toolbar'); 
    232  
    233 $wp_styles = new WP_Styles(); 
    234 wp_deregister_style( 'admin-bar' ); 
    235 //wp_deregister_style('wp-admin-bar'); 
    236 //wp_deregister_style('admin_bar_menu'); 
    237 //wp_deregister_style('nacin_promote_network_admin_in_toolbar'); 
    238  
    239 remove_action( 'wp_footer', 'wp_admin_bar_render', 1000 ); 
    240 remove_filter( 'wp_footer', 'wp_admin_bar_render', 1000 ); 
    241 remove_action( 'admin_footer', 'wp_admin_bar_render', 1000 ); 
    242 remove_filter( 'admin_footer', 'wp_admin_bar_render', 1000 ); 
    243  
    244 //remove_action('admin_footer','wp_admin_bar_render'); 
    245 //remove_filter('admin_footer','wp_admin_bar_render'); 
    246  
    247 //remove_action('wp_head','wp_admin_bar_render',1000); 
    248 //remove_filter('wp_head','wp_admin_bar_render',1000); 
    249 //remove_action('admin_head','wp_admin_bar_render',1000); 
    250 //remove_filter('admin_head','wp_admin_bar_render',1000); 
    251  
    252 remove_action( 'wp_head', 'wp_admin_bar_css' ); 
    253 remove_action( 'admin_head', 'wp_admin_bar_css' ); 
    254 remove_action( 'wp_footer', 'wp_admin_bar_js' ); 
    255 remove_action( 'admin_footer', 'wp_admin_bar_js' ); 
    256 remove_action( 'wp_ajax_adminbar_render', 'wp_admin_bar_ajax_render' ); 
    257 remove_filter( 'wp_ajax_adminbar_render', 'wp_admin_bar_ajax_render' ); 
    258  
    259 remove_filter( 'locale', 'wp_admin_bar_lang' ); 
    260  
    261 //remove_action('admin_head','nacin_promote_network_admin_in_toolbar',25); 
    262 //remove_action('admin_head','admin_bar_menu'); 
    263  
    264 //remove_filter('wp_head','wp_admin_bar_wp_menu'); 
    265 //remove_filter('wp_head','wp_admin_bar_add_secondary_groups'); 
    266  
    267 //remove_filter('wp_head','wp_admin_bar'); 
    268 //remove_filter('wp_footer','wp_admin_bar'); 
    269 //remove_filter('admin_head','wp_admin_bar'); 
    270 //remove_filter('admin_footer','wp_admin_bar'); 
    271 //remove_filter('wp_head','wp_admin_bar_class'); 
    272 //remove_filter('wp_footer','wp_admin_bar_class'); 
    273 //remove_filter('admin_head','wp_admin_bar_class'); 
    274 //remove_filter('admin_footer','wp_admin_bar_class'); 
    275  
    276 remove_action('wp_head','wp_admin_bar_dev_css'); 
    277 remove_action('wp_head','wp_admin_bar_rtl_css'); 
    278 remove_action('wp_head','wp_admin_bar_rtl_dev_css'); 
    279  
    280 remove_action('admin_head','wp_admin_bar_dev_css'); 
    281 remove_action('admin_head','wp_admin_bar_rtl_css'); 
    282 remove_action('admin_head','wp_admin_bar_rtl_dev_css'); 
    283  
    284 remove_action('wp_footer','wp_admin_bar_dev_js'); 
    285 remove_action('admin_footer','wp_admin_bar_dev_js'); 
    286  
    287 //remove_action('admin_bar_menu','nacin_promote_network_admin_in_toolbar',25); 
    288 //remove_filter('admin_bar_menu','nacin_promote_network_admin_in_toolbar',25); 
    289  
    290 //remove_action('personal_options','_admin_bar_pref'); 
    291 //remove_filter('personal_options','_admin_bar_pref'); 
    292  
    293 //remove_action('personal_options','_get_admin_bar_pref'); 
    294 //remove_filter('personal_options','_get_admin_bar_pref'); 
    295  
    296 //show_admin_bar(false); 
    297  
    298 function wptbr_init(){add_filter('show_admin_bar','__return_false');}add_filter('init','wptbr_init'); 
    299 function wptbr_spab_init(){add_filter( 'show_wp_pointer_admin_bar', '__return_false' );}add_filter('init','wptbr_spab_init'); 
    300 function wptbr_rsf(){echo'<style type="text/css">html{margin-top:0px !important}* html body{margin-top:0px !important}</style>';}add_filter('wp_head','wptbr_rsf',99); 
    301 function wptbr_ruppoabpc(){echo'<style type="text/css">.show-admin-bar{display:none}</style>';}add_action('admin_print_styles-profile.php','wptbr_ruppoabpc'); 
    302 function wptbr_nfo(){echo"\n<!--Plugin ToolBar Removal 2012-VERSION.0626-BUGFIX.0431-DEVELOPMENT Active-->";}add_action('wp_head','wptbr_nfo');add_action('wp_footer','wptbr_nfo'); 
    303 ?> 
     63if(!function_exists('add_action')){header('HTTP/1.0 403 Forbidden');header('HTTP/1.1 403 Forbidden');exit();}function wptbr_rsb(){echo'<style type="text/css">html.wp-toolbar,html.wp-toolbar #wpcontent,html.wp-toolbar #adminmenu,html.wp-toolbar #wpadminbar,body.admin-bar,body.admin-bar #wpcontent,body.admin-bar #adminmenu,body.admin-bar #wpadminbar{padding-top:0px !important}</style>';}add_action('admin_print_styles','wptbr_rsb',21);function wptbr_rbcb(){if(has_filter('wp_head','_admin_bar_bump_cb')){remove_filter('wp_head','_admin_bar_bump_cb');}}add_filter('wp_head','wptbr_rbcb',1);function wptbr_ngr($wp_toolbar){$wp_toolbar->remove_node('root-default');$wp_toolbar->remove_node('wp-logo');$wp_toolbar->remove_node('wp-logo-default');$wp_toolbar->remove_node('about');$wp_toolbar->remove_node('wp-logo-external');$wp_toolbar->remove_node('wporg');$wp_toolbar->remove_node('documentation');$wp_toolbar->remove_node('support-forums');$wp_toolbar->remove_node('feedback');$wp_toolbar->remove_node('site-name');$wp_toolbar->remove_node('site-name-default');$wp_toolbar->remove_node('view-site');$wp_toolbar->remove_node('comments');$wp_toolbar->remove_node('updates');$wp_toolbar->remove_node('view');$wp_toolbar->remove_node('new-content');$wp_toolbar->remove_node('new-content-default');$wp_toolbar->remove_node('new-post');$wp_toolbar->remove_node('new-media');$wp_toolbar->remove_node('new-link');$wp_toolbar->remove_node('new-page');$wp_toolbar->remove_node('new-user');$wp_toolbar->remove_node('top-secondary');$wp_toolbar->remove_node('my-account');$wp_toolbar->remove_node('user-actions');$wp_toolbar->remove_node('user-info');$wp_toolbar->remove_node('edit-profile');$wp_toolbar->remove_node('logout');$wp_toolbar->remove_node('search');$wp_toolbar->remove_node('my-sites');$wp_toolbar->remove_node('my-sites-list');$wp_toolbar->remove_node('blog-1');$wp_toolbar->remove_node('blog-1-default');$wp_toolbar->remove_node('blog-1-d');$wp_toolbar->remove_node('blog-1-n');$wp_toolbar->remove_node('blog-1-c');$wp_toolbar->remove_node('blog-1-v');$wp_toolbar->remove_node('blog-2');$wp_toolbar->remove_node('blog-2-default');$wp_toolbar->remove_node('blog-2-d');$wp_toolbar->remove_node('blog-2-n');$wp_toolbar->remove_node('blog-2-c');$wp_toolbar->remove_node('blog-2-v');$wp_toolbar->remove_node('blog-3');$wp_toolbar->remove_node('blog-3-default');$wp_toolbar->remove_node('blog-3-d');$wp_toolbar->remove_node('blog-3-n');$wp_toolbar->remove_node('blog-3-c');$wp_toolbar->remove_node('blog-3-v');$wp_toolbar->remove_node('blog-4');$wp_toolbar->remove_node('blog-4-default');$wp_toolbar->remove_node('blog-4-d');$wp_toolbar->remove_node('blog-4-n');$wp_toolbar->remove_node('blog-4-c');$wp_toolbar->remove_node('blog-4-v');$wp_toolbar->remove_node('blog-5');$wp_toolbar->remove_node('blog-5-default');$wp_toolbar->remove_node('blog-5-d');$wp_toolbar->remove_node('blog-5-n');$wp_toolbar->remove_node('blog-5-c');$wp_toolbar->remove_node('blog-5-v');$wp_toolbar->remove_node('blog-6');$wp_toolbar->remove_node('blog-6-default');$wp_toolbar->remove_node('blog-6-d');$wp_toolbar->remove_node('blog-6-n');$wp_toolbar->remove_node('blog-6-c');$wp_toolbar->remove_node('blog-6-v');$wp_toolbar->remove_node('blog-7');$wp_toolbar->remove_node('blog-7-default');$wp_toolbar->remove_node('blog-7-d');$wp_toolbar->remove_node('blog-7-n');$wp_toolbar->remove_node('blog-7-c');$wp_toolbar->remove_node('blog-7-v');$wp_toolbar->remove_node('blog-8');$wp_toolbar->remove_node('blog-8-default');$wp_toolbar->remove_node('blog-8-d');$wp_toolbar->remove_node('blog-8-n');$wp_toolbar->remove_node('blog-8-c');$wp_toolbar->remove_node('blog-8-v');$wp_toolbar->remove_node('blog-9');$wp_toolbar->remove_node('blog-9-default');$wp_toolbar->remove_node('blog-9-d');$wp_toolbar->remove_node('blog-9-n');$wp_toolbar->remove_node('blog-9-c');$wp_toolbar->remove_node('blog-9-v');$wp_toolbar->remove_node('wpseo-menu');$wp_toolbar->remove_node('wpseo-menu-default');$wp_toolbar->remove_node('wpseo-kwresearch');$wp_toolbar->remove_node('wpseo-kwresearch-default');$wp_toolbar->remove_node('wpseo-adwordsexternal');$wp_toolbar->remove_node('wpseo-googleinsights');$wp_toolbar->remove_node('wpseo-wordtracker');$wp_toolbar->remove_node('wpseo-settings');$wp_toolbar->remove_node('wpseo-settings-default');$wp_toolbar->remove_node('wpseo-titles');$wp_toolbar->remove_node('wpseo-social');$wp_toolbar->remove_node('wpseo-xml');$wp_toolbar->remove_node('wpseo-permalinks');$wp_toolbar->remove_node('wpseo-internal-links');$wp_toolbar->remove_node('wpseo-rss');$wp_toolbar->remove_node('ngg-menu');$wp_toolbar->remove_node('ngg-menu-default');$wp_toolbar->remove_node('ngg-menu-overview');$wp_toolbar->remove_node('ngg-menu-add-gallery');$wp_toolbar->remove_node('ngg-menu-manage-gallery');$wp_toolbar->remove_node('ngg-menu-manage-album');$wp_toolbar->remove_node('ngg-menu-tags');$wp_toolbar->remove_node('ngg-menu-options');$wp_toolbar->remove_node('ngg-menu-style');$wp_toolbar->remove_node('ngg-menu-about');$wp_toolbar->remove_node('cloudflare');$wp_toolbar->remove_node('cloudflare-default');$wp_toolbar->remove_node('cloudflare-my-websites');$wp_toolbar->remove_node('cloudflare-analytics');$wp_toolbar->remove_node('cloudflare-account');$wp_toolbar->remove_node('w3tc');$wp_toolbar->remove_node('w3tc-default');$wp_toolbar->remove_node('w3tc-empty-caches');$wp_toolbar->remove_node('w3tc-faq');$wp_toolbar->remove_node('w3tc-support');}add_action('admin_bar_menu','wptbr_ngr',999);function wptbr_ab_ngr(){global$wp_admin_bar;$wp_admin_bar->remove_menu('root-default');$wp_admin_bar->remove_menu('delete-cache');$wp_admin_bar->remove_menu('network-admin');}add_action('wp_before_admin_bar_render','wptbr_ab_ngr',999);function wptbr_ras(){echo'<style type="text/css">#adminmenushadow,#adminmenuback{background-image:none}</style>';}add_action('admin_head','wptbr_ras');function wptbr_hdr(){?><style type="text/css">table#wptbr td#wptbr_ttl a:link,table#wptbr td#wptbr_ttl a:visited{text-decoration:none}table#wptbr td#wptbr_lgt,table#wptbr td#wptbr_lgt a{text-decoration:none}</style><table style="margin-left:6px;float:left;z-index:100;position:relative;left:0px;top:0px;background:none;padding:0px;border:0px;border-bottom:1px solid #DFDFDF" id="wptbr" border=0 cols=4 width="97%" height="33"><tr><td align=left valign=center id="wptbr_ttl"><?php echo'<a href="'.home_url().'">'.__(get_bloginfo()).'</a>'?></td><td align=right valign=center id="wptbr_lgt"><div style="padding-top:2px"><?php wp_get_current_user();$current_user=wp_get_current_user();if(!($current_user instanceof WP_User))return;echo''.$current_user->display_name.''?><?php if(is_multisite()&&is_super_admin()){if(!is_network_admin()){echo' | <a href="'.network_admin_url(). '">'. __('Network Admin'). '</a>';}else{echo' | <a href="' .get_dashboard_url(get_current_user_id()). '">'.__('Site Admin') . '</a>';}}?> | <?php echo'<a href="' .wp_logout_url(home_url()). '">'.__('Log Out'). '</a>'?></div></td><td width="8"></td></tr></table><?php }add_action('in_admin_header','wptbr_hdr');remove_action('init','wp_admin_bar_init');remove_filter('init','wp_admin_bar_init');$wp_scripts=new WP_Scripts();wp_deregister_script('admin-bar');$wp_styles=new WP_Styles();wp_deregister_style('admin-bar');remove_action('wp_footer','wp_admin_bar_render',1000);remove_filter('wp_footer','wp_admin_bar_render',1000);remove_action('admin_footer','wp_admin_bar_render',1000);remove_filter('admin_footer','wp_admin_bar_render',1000);remove_action('wp_head','wp_admin_bar_css');remove_action('admin_head','wp_admin_bar_css');remove_action('wp_footer','wp_admin_bar_js');remove_filter('wp_footer','wp_admin_bar_js');remove_action('admin_footer','wp_admin_bar_js');remove_filter('admin_footer','wp_admin_bar_js');remove_action('wp_ajax_adminbar_render','wp_admin_bar_ajax_render');remove_filter('wp_ajax_adminbar_render','wp_admin_bar_ajax_render');remove_filter('locale','wp_admin_bar_lang');remove_filter('wp_head','wp_admin_bar');remove_filter('wp_footer','wp_admin_bar');remove_filter('admin_head','wp_admin_bar');remove_filter('admin_footer','wp_admin_bar');remove_filter('wp_head','wp_admin_bar_class');remove_filter('wp_footer','wp_admin_bar_class');remove_filter('admin_head','wp_admin_bar_class');remove_filter('admin_footer','wp_admin_bar_class');remove_action('wp_head','wp_admin_bar_dev_css');remove_action('wp_head','wp_admin_bar_rtl_css');remove_action('wp_head','wp_admin_bar_rtl_dev_css');remove_action('admin_head','wp_admin_bar_dev_css');remove_action('admin_head','wp_admin_bar_rtl_css');remove_action('admin_head','wp_admin_bar_rtl_dev_css');remove_action('wp_footer','wp_admin_bar_dev_js');remove_filter('wp_footer','wp_admin_bar_dev_js');remove_action('admin_footer','wp_admin_bar_dev_js');remove_filter('admin_footer','wp_admin_bar_dev_js');remove_action('personal_options','_admin_bar_pref');remove_filter('personal_options','_admin_bar_pref');remove_action('personal_options','_get_admin_bar_pref');remove_filter('personal_options','_get_admin_bar_pref');function wptbr_init(){add_filter('show_admin_bar','__return_false');}add_filter('init','wptbr_init',9);show_admin_bar(false);function wptbr_spab_init(){add_filter('show_wp_pointer_admin_bar','__return_false');}add_filter('init','wptbr_spab_init');function wptbr_rsf(){echo'<style type="text/css">*{margin-top:0px !important}html{margin-top:0px !important}body{margin-top:0px !important}</style>';}add_filter('admin_head','wptbr_rsf',99);function wptbr_nfo(){echo"\n<!--Plugin ToolBar Removal 2012.1205.0350 Active-->\n";}add_action('wp_head','wptbr_nfo');add_action('wp_footer','wptbr_nfo');add_action('admin_head','wptbr_nfo');add_action('admin_footer','wptbr_nfo')?> 
Note: See TracChangeset for help on using the changeset viewer.