Changeset 17057
- Timestamp:
- 12/19/2010 09:54:13 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/admin-bar.php
r17032 r17057 49 49 global $wp_admin_bar; 50 50 51 if ( ! is_ object( $wp_admin_bar ) )51 if ( ! is_admin_bar_showing() || ! is_object( $wp_admin_bar ) ) 52 52 return false; 53 53 … … 313 313 global $show_admin_bar; 314 314 $show_admin_bar = (bool) $show; 315 316 // Remove the object if we are not going to be showing317 // Otherwise you have to call this function prior to the init hook for it to work!318 if ( ! $show_admin_bar && isset( $GLOBALS['wp_admin_bar'] ) )319 $GLOBALS['wp_admin_bar'] = null;320 315 } 321 316
Note: See TracChangeset
for help on using the changeset viewer.