WordPress.org

Plugin Directory

Changeset 563855


Ignore:
Timestamp:
06/26/12 02:32:08 (22 months ago)
Author:
sLaNGjI
Message:
 
Location:
wp-toolbar-removal
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-toolbar-removal/tags/2012.0621.0341/readme.txt

    r563033 r563855  
    22Contributors: sLaNGjI 
    33Donate link: http://slangji.wordpress.com/donate/ 
    4 Tags: sLa, sLaNGjI, toolbar, admin, bar, removal, hide, disable, remove, frontend, backend, code 
     4Tags: toolbar, admin, bar, node, remove, hide, disable, frontend, backend, pointer, shadow, code 
    55Stable tag: 2012.0621.0341 
    66Requires at least: 3.3 
    77Tested up to: 3.4.1 
    88License: GPLv2 or later 
    9 Completely Disable new WordPress 3.3+ 3.4+ 3.5+ Admin ToolBar Frontend, Backend, Node, User Profile, without loosing logout and network functionality! Thanks to olyma. 
     9Completely Disable new WordPress 3.3+ 3.4+ Admin ToolBar Frontend, Backend, Node, Pointer, Shadow, User Profile, without loosing Logout and Network functionality! Thanks to olyma. 
    1010== Description == 
    11 Completely Disable new WordPress 3.3+ and 3.4+ (only) Admin ToolBar Frontend, Backend, Node Goup Link, related User Profile Settings, without loosing logout and network functionality! Completely <code>Remove Code</code> for minimal memory load, with new approach. Supported on WordPress 3.5-alpha work with single and multisite installation. 
     11Completely Disable new WordPress 3.3+ and 3.4+ (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. 
    1212 
    13 All in One Removal: ToolBar - Node - Frontend - Backend - Profile - Network - Code. 
     13All 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+ / 3.3+ and supported on WordPress 3.5-alpha work with single and multisite installation. 
     15The 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. 
    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 0621-BUGFIX Revision 0433-DEVELOPMENT](http://downloads.wordpress.org/plugin/wp-toolbar-removal.zip) 
     44[Version 2012 Build 0626-BUGFIX Revision 0431-DEVELOPMENT](http://downloads.wordpress.org/plugin/wp-toolbar-removal.zip) 
    4545= Warning Notice = 
    46 Version 2012.0621.0341 was silently updated on 2012-06-23. 
     46Version 2012.0621.0341 was silently updated on 2012-06-26. 
    4747Please re-download and re-install as soon possible! Enjoy :) 
    4848= 2012.0621.0341 = 
    49 * Release Candidate [STABLE] Full WP 3.4+ Compatible. Supported on WP 3.5-alpha 
     49* Release Candidate [STABLE] Full WP 3.4+ Compatible. Supported on WP 3.5-alpha-21103 
    5050 * Please update as soon possible! 
    5151 * FIXED - Blank Space Alone on Admin Backend 
     
    5454 * FIXED - Deprecated Debug Notices 
    5555 * NEW - Introduced ToolBar Nodes Removal Support for Popular Third Party Plugins 
    56  * Preemptive support WP 3.5-alpha 
     56 * Preemptive support WP 3.5-alpha-21103 
    5757 * Enhancement of [Admin Bar Removal](http://wordpress.org/extend/plugins/wp-admin-bar-removal/) 
    5858 * Derived from [Admin Bar Node Removal](http://wordpress.org/extend/plugins/wp-admin-bar-node-removal/) 
     
    8585== Upgrade Notice == 
    8686= 2012.0621.0341 = 
    87 * Release Candidate [STABLE] Full WP 3.4+ / 3.3+ Compatible. Supported on WP 3.5-alpha [Admin Bar Removal](http://wordpress.org/extend/plugins/wp-admin-bar-removal/) Enhancement! 
     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! 
    8888= 2012.0319.2012 = 
    8989* 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/tags/2012.0621.0341/wp-toolbar-removal.php

    r562824 r563855  
    33Plugin Name: ToolBar Removal - RC 
    44Plugin URI: http://slangji.wordpress.com/wp-toolbar-removal/ 
    5 Description: Completely <code>Disable</code> new WordPress 3.3+ and 3.4+ (only) <code>ToolBar</code> Frontend, Backend, related User Profile Settings, without loosing logout functionality! Completely <code>Remove Code</code> for minimal memory load, with new approach. Work under GPLv2 License. (RELEASE CANDIDATE 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> 
     5Description: Completely <code>Disable</code> new WordPress 3.3+ 3.4+ (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. (RELEASE CANDIDATE 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> 
    66Version: 2012.0621.0341 
    77Author: sLa 
     
    1111License: GPLv2 or later 
    1212 * 
    13  * Development Release: Version 2012 Build 0621-BUGFIX Revision 0433-DEVELOPMENT - DEV 
     13 * Development Release: Version 2012 Build 0626-BUGFIX Revision 0431-DEVELOPMENT - DEV 
    1414 * 
    1515 * [ToolBar Removal](http://wordpress.org/extend/plugins/wp-toolbar-removal/) WordPress PlugIn 
     
    5151 * @license GPLv2 or later 
    5252 * 
    53  * Completely Disable ToolBar Frontend, Backend, related User Profile Settings, without loosing logout functionality, and Remove Code for minimal memory load with new approach. 
     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. 
    5454 */ 
    55 if(!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('network-admin');$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_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_action('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_class');remove_filter('admin_head','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_action('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');function wptbr_spab_init(){add_filter('show_wp_pointer_admin_bar','__return_false');}add_filter('init','wptbr_spab_init');function wptbr_ruppoabpc(){echo'<style type="text/css">.show-admin-bar{display:none}</style>';}add_action('admin_print_styles-profile.php','wptbr_ruppoabpc');show_admin_bar(false);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);function wptbr_nfo(){echo"\n<!--Plugin ToolBar Removal 2012.0621.0341 RC Active-->";}add_action('wp_head','wptbr_nfo');add_action('wp_footer','wptbr_nfo')?> 
     55if(!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_action('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_class');remove_filter('admin_head','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_action('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');function wptbr_spab_init(){add_filter('show_wp_pointer_admin_bar','__return_false');}add_filter('init','wptbr_spab_init');function wptbr_ruppoabpc(){echo'<style type="text/css">.show-admin-bar{display:none}</style>';}add_action('admin_print_styles-profile.php','wptbr_ruppoabpc');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);function wptbr_nfo(){echo"\n<!--Plugin ToolBar Removal 2012.0621.0341 RC Active-->";}add_action('wp_head','wptbr_nfo');add_action('wp_footer','wptbr_nfo')?> 
  • wp-toolbar-removal/trunk/wp-toolbar-removal.php

    r563767 r563855  
    33Plugin Name: ToolBar Removal - DEV 
    44Plugin URI: http://slangji.wordpress.com/wp-toolbar-removal/ 
    5 Description: Completely <code>Disable</code> new WordPress 3.3+ and 3.4+ (only) <code>ToolBar</code> Frontend, Backend, related User Profile Settings, without loosing logout functionality! Completely <code>Remove Code</code> for minimal memory load, with new approach. Development Code in Becoming. 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.0623-BUGFIX.1124-DEVELOPMENT 
     5Description: 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> 
     6Version: 2012-VERSION.0626-BUGFIX.0431-DEVELOPMENT 
    77Author: sLa 
    88Author URI: http://slangji.wordpress.com/ 
     
    4747 * @subpackage WordPress PlugIn 
    4848 * @since 3.3.0 
    49  * @version 2012-VERSION.0623-BUGFIX.1124-DEVELOPMENT 
     49 * @version 2012-VERSION.0626-BUGFIX.0431-DEVELOPMENT 
    5050 * @author sLa 
    5151 * @license GPLv2 or later 
    5252 * 
    53  * Completely Disable ToolBar Frontend, Backend, related User Profile Settings, without loosing logout functionality, and Remove Code for minimal memory load with new approach. 
     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. 
    5454 */ 
    5555if(!function_exists('add_action')){header('HTTP/1.0 403 Forbidden');header('HTTP/1.1 403 Forbidden');exit();} 
     
    209209 
    210210    $wp_admin_bar->remove_menu( 'root-default' ); 
    211     //$wp_admin_bar->remove_menu( 'network-admin' ); 
     211    $wp_admin_bar->remove_menu( 'network-admin' ); 
    212212 
    213213    // WP Super Cache Node Removal 
     
    217217    add_action( 'wp_before_admin_bar_render', 'wptbr_ab_ngr', 999 ); 
    218218 
     219function wptbr_ras(){echo'<style type="text/css">#adminmenushadow,#adminmenuback{background-image:none}</style>';}add_action('admin_head','wptbr_ras'); 
    219220function 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'); 
    220221 
     
    299300function 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); 
    300301function wptbr_ruppoabpc(){echo'<style type="text/css">.show-admin-bar{display:none}</style>';}add_action('admin_print_styles-profile.php','wptbr_ruppoabpc'); 
    301 function wptbr_nfo(){echo"\n<!--Plugin ToolBar Removal 2012-VERSION.0623-BUGFIX.1124-DEVELOPMENT Active-->";}add_action('wp_head','wptbr_nfo');add_action('wp_footer','wptbr_nfo'); 
     302function 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'); 
    302303?> 
Note: See TracChangeset for help on using the changeset viewer.