NULL isn't set.
git-svn-id: https://develop.svn.wordpress.org/trunk@17019 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e7e3b8fde9
commit
5ee410fd40
@ -313,7 +313,7 @@ function is_admin_bar_showing() {
|
|||||||
if ( defined('XMLRPC_REQUEST') || defined('APP_REQUEST') || defined('DOING_AJAX') || defined('IFRAME_REQUEST') )
|
if ( defined('XMLRPC_REQUEST') || defined('APP_REQUEST') || defined('DOING_AJAX') || defined('IFRAME_REQUEST') )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if ( ! isset( $show_admin_bar ) || null === $show_admin_bar ) {
|
if ( ! isset( $show_admin_bar ) ) {
|
||||||
if ( ! is_user_logged_in() || ( is_admin() && ! is_multisite() ) ) {
|
if ( ! is_user_logged_in() || ( is_admin() && ! is_multisite() ) ) {
|
||||||
$show_admin_bar = false;
|
$show_admin_bar = false;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user