In `admin-bar.php`, most functions simply return when a conditional is not met. `wp_admin_bar_render()` shouldn't explicitly return `false`.
See #32444. git-svn-id: https://develop.svn.wordpress.org/trunk@32525 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f0d6031d9b
commit
cb145bd1c0
|
@ -60,7 +60,7 @@ function wp_admin_bar_render() {
|
|||
global $wp_admin_bar;
|
||||
|
||||
if ( ! is_admin_bar_showing() || ! is_object( $wp_admin_bar ) )
|
||||
return false;
|
||||
return;
|
||||
|
||||
/**
|
||||
* Load all necessary admin bar items.
|
||||
|
|
Loading…
Reference in New Issue