Changeset 17296
- Timestamp:
- 01/14/2011 05:57:25 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/admin-bar.php
r17295 r17296 9 9 * Instantiate the admin bar object and set it up as a global for access elsewhere. 10 10 * 11 * @since 3.1.0 11 * To hide the admin bar, you're looking in the wrong place. Unhooking this function will not 12 * properly remove the admin bar. For that, use show_admin_bar(false) or the show_admin_bar filter. 13 * 14 * @since 3.1.0 15 * @access private 12 16 * @return bool Whether the admin bar was successfully initialized. 13 17 */ 14 function wp_admin_bar_init() {18 function _wp_admin_bar_init() { 15 19 global $wp_admin_bar; 16 20 … … 33 37 return true; 34 38 } 35 add_action( 'init', ' wp_admin_bar_init' );39 add_action( 'init', '_wp_admin_bar_init' ); // Don't remove. Wrong way to disable. 36 40 37 41 /**
Note: See TracChangeset
for help on using the changeset viewer.