WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/20/2016 09:26:26 PM (4 years ago)
Author:
DrewAPicture
Message:

Docs: Fix two incorrect notations of the $show_admin_bar global to specify a boolean type, not WP_Admin_Bar.

See [36491]. Fixes #35686.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/admin-bar.php

    r36491 r36601  
    880880 * @since 3.1.0
    881881 *
    882  * @global WP_Admin_Bar $show_admin_bar
     882 * @global bool $show_admin_bar
    883883 *
    884884 * @param bool $show Whether to allow the admin bar to show.
     
    894894 * @since 3.1.0
    895895 *
    896  * @global WP_Admin_Bar $show_admin_bar
    897  * @global string       $pagenow
     896 * @global bool  $show_admin_bar
     897 * @global string $pagenow
    898898 *
    899899 * @return bool Whether the admin bar should be showing.
Note: See TracChangeset for help on using the changeset viewer.