Changeset 23512
- Timestamp:
- 02/28/2013 04:56:35 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/admin-bar.php
r23360 r23512 9 9 * Instantiate the admin bar object and set it up as a global for access elsewhere. 10 10 * 11 * To hide the admin bar, you're looking in the wrong place. Unhooking this function will not12 * properly remove the admin bar. For that, use show_admin_bar(false) or the show_admin_barfilter.11 * UNHOOKING THIS FUNCTION WILL NOT PROPERLY REMOVE THE ADMIN BAR. 12 * For that, use show_admin_bar(false) or the 'show_admin_bar' filter. 13 13 * 14 14 * @since 3.1.0 … … 37 37 return true; 38 38 } 39 add_action( 'init', '_wp_admin_bar_init' ); // Don't remove. Wrong way to disable. 39 // Don't remove. Wrong way to disable. 40 add_action( 'template_redirect', '_wp_admin_bar_init', 0 ); 41 add_action( 'admin_init', '_wp_admin_bar_init' ); 40 42 41 43 /**
Note: See TracChangeset
for help on using the changeset viewer.