Docs: Fix two notations in the DocBlocks for show_admin_bar()
and is_admin_bar_showing()
to reflect use of the $show_admin_bar
global rather than $wp_admin_bar
.
Props Frozzare. Fixes #35686. git-svn-id: https://develop.svn.wordpress.org/trunk@36491 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b925222cb9
commit
38aeeb5ebe
@ -879,7 +879,7 @@ function _admin_bar_bump_cb() { ?>
|
||||
*
|
||||
* @since 3.1.0
|
||||
*
|
||||
* @global WP_Admin_Bar $wp_admin_bar
|
||||
* @global WP_Admin_Bar $show_admin_bar
|
||||
*
|
||||
* @param bool $show Whether to allow the admin bar to show.
|
||||
*/
|
||||
@ -893,7 +893,7 @@ function show_admin_bar( $show ) {
|
||||
*
|
||||
* @since 3.1.0
|
||||
*
|
||||
* @global WP_Admin_Bar $wp_admin_bar
|
||||
* @global WP_Admin_Bar $show_admin_bar
|
||||
* @global string $pagenow
|
||||
*
|
||||
* @return bool Whether the admin bar should be showing.
|
||||
|
Loading…
Reference in New Issue
Block a user