Make WordPress Core


Ignore:
Timestamp:
04/04/2022 06:24:18 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Docs: Add missing description for $pagenow global in various functions.

See #54729, #55499.

File:
1 edited

Legend:

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

    r52978 r53060  
    278278 * @since 2.3.0
    279279 *
    280  * @global string $pagenow
     280 * @global string $pagenow The filename of the current screen.
    281281 * @return void|false
    282282 */
    283283function update_nag() {
     284    global $pagenow;
     285
    284286    if ( is_multisite() && ! current_user_can( 'update_core' ) ) {
    285287        return false;
    286288    }
    287 
    288     global $pagenow;
    289289
    290290    if ( 'update-core.php' === $pagenow ) {
Note: See TracChangeset for help on using the changeset viewer.