Make WordPress Core


Ignore:
Timestamp:
04/04/2022 06:24:18 PM (3 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/admin.php

    r51475 r53060  
    117117
    118118/**
    119  * $pagenow is set in vars.php
    120  * $wp_importers is sometimes set in wp-admin/includes/import.php
    121  * The remaining variables are imported as globals elsewhere, declared as globals here
    122  *
    123  * @global string $pagenow
     119 * $pagenow is set in vars.php.
     120 * $wp_importers is sometimes set in wp-admin/includes/import.php.
     121 * The remaining variables are imported as globals elsewhere, declared as globals here.
     122 *
     123 * @global string $pagenow      The filename of the current screen.
    124124 * @global array  $wp_importers
    125125 * @global string $hook_suffix
     
    377377     *
    378378     * The dynamic portion of the hook name, `$pagenow`, is a global variable
    379      * referring to the filename of the current page, such as 'admin.php',
     379     * referring to the filename of the current screen, such as 'admin.php',
    380380     * 'post-new.php' etc. A complete hook for the latter would be
    381381     * 'load-post-new.php'.
Note: See TracChangeset for help on using the changeset viewer.