show_admin_bar(). see #14772

git-svn-id: https://develop.svn.wordpress.org/trunk@15863 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2010-10-20 13:23:39 +00:00
parent 8dcf52eeec
commit 74ef68d6ce
2 changed files with 24 additions and 9 deletions
+1 -6
View File
@@ -11,12 +11,7 @@
function wp_admin_bar_init() {
global $current_user, $pagenow, $wp_admin_bar;
if ( defined('WP_SHOW_ADMIN_BAR') )
$show_it = (bool) WP_SHOW_ADMIN_BAR;
else
$show_it = true;
if ( ! apply_filters( 'show_admin_bar', $show_it ) )
if ( ! show_admin_bar() )
return false;
/* Set the protocol constant used throughout this code */