WordPress.org

Plugin Directory

Changeset 673006


Ignore:
Timestamp:
02/25/13 13:05:34 (14 months ago)
Author:
sLaNGjI
Message:

Stable Version 2011.1212.2011

File:
1 edited

Legend:

Unmodified
Added
Removed
  • toolbar-removal-completely-disable/trunk/toolbar-removal-completely-disable.php

    r672956 r673006  
    11<?php 
    22/* 
    3 Plugin Name: sLa2sLaNGjI's 
    4 Plugin URI: http://slangji.wordpress.com/plugins/ 
    5 Description: Sample to Insert Informational Text Log on Header and Footer when Plugin is Activated. 
    6 Version: 2009.1208.2009 
     3Plugin Name: Disable WordPress ToolBar 
     4Plugin URI: http://slangji.wordpress.com/toolbar-removal-completely-disable/ 
     5Description: Disable new WordPress 3.3+ and later ToolBar Frontend. 
     6Version: 2011.1212.2011 
    77Author: sLa 
    88Author URI: http://slangji.wordpress.com/ 
    9 Requires at least: 2.1 
     9Requires at least: 3.3 
    1010Tested up to: 3.8 
    11 License: GPLv2 or later 
     11License: GPLv2 (or later) 
    1212License URI: http://www.gnu.org/licenses/gpl-2.0.html 
    13 Indentation: GNU style coding standard 
     13Indentation: GNU (style coding standard) 
    1414Indentation URI: http://www.gnu.org/prep/standards/standards.html 
    1515 * 
    16  * sLa2sLaNGjI's - Sample to Insert Informational Text Log on Header and Footer when Plugin is Activated. 
     16 * Disable WordPress ToolBar - Disable new WordPress 3.3+ and later ToolBar Frontend. 
    1717 * 
    18  * Copyright (C) 2009-2013 [sLaNGjI's](http://slangji.wordpress.com/slangjis/) (email: <slangji[at]gmail[dot]com>) 
     18 * Copyright (C) 2011-2013 [sLaNGjI's](http://slangji.wordpress.com/slangjis/) (email: <slangji[at]gmail[dot]com>) 
    1919 * 
    2020 * This program is free software; you can redistribute it and/or 
     
    3232 * or write to the Free Software Foundation, Inc., 51 Franklin Street, 
    3333 * Fifth Floor, Boston, MA 02110-1301, USA. 
    34  * 
    35  * √ THERMS 
    36  * 
    37  * This uses code derived from 
    38  * wp-footer-log.php by sLa <slangji[at]gmail[dot]com> 
    39  * sLa2sLaNGjIs.php by sLa <slangji[at]gmail[dot]com> 
    40  * according to the terms of the GNU General Public License version 2 (or later) 
    41  * 
    42  * According to the Terms of the GNU General Public License version 2 (or later) part of Copyright belongs to your own author and part belongs to their respective others authors: 
    43  * 
    44  * Copyright (C) 2009-2013 sLa (email: <slangji[at]gmail[dot]com>) 
    4534 * 
    4635 * √ DISCLAIMER 
     
    8271 * @package sLa2sLaNGjIs 
    8372 * @subpackage WordPress PlugIn 
    84  * @since 2.1.0 
    85  * @version 2009.1208.2009 
     73 * @since 3.3.0 
     74 * @version 2011.1212.2011 
    8675 * @status STABLE (release) 
    8776 * @author sLa 
     
    9584            exit(); 
    9685        } 
    97     function sLa2sLaNGjIs() 
     86    show_admin_bar(false); 
     87    function admin_toolbar_init() 
    9888        { 
    99             echo "\n<!--Plugin sLa2sLaNGjIs 2009.1208.2009 Active-->\n\n"; 
     89            add_filter('show_admin_bar', '__return_false'); 
    10090        } 
    101     add_action('admin_head', 'sLa2sLaNGjIs'); 
    102     add_action('admin_footer', 'sLa2sLaNGjIs'); 
    103     add_action('login_head', 'sLa2sLaNGjIs'); 
    104     add_action('login_footer', 'sLa2sLaNGjIs'); 
    105     add_action('wp_head', 'sLa2sLaNGjIs'); 
    106     add_action('wp_footer', 'sLa2sLaNGjIs'); 
     91    add_filter('init', 'admin_toolbar_init', 9); 
    10792?> 
Note: See TracChangeset for help on using the changeset viewer.