mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user