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

See #54729, #55499.

git-svn-id: https://develop.svn.wordpress.org/trunk@53060 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2022-04-04 18:24:18 +00:00
parent 74f4d6b441
commit 8277055e37
22 changed files with 42 additions and 37 deletions

View File

@@ -886,6 +886,8 @@ function wp_skip_paused_plugins( array $plugins ) {
* @since 5.1.0
* @access private
*
* @global string $pagenow The filename of the current screen.
*
* @return string[] Array of absolute paths to theme directories.
*/
function wp_get_active_and_valid_themes() {
@@ -966,7 +968,7 @@ function wp_is_recovery_mode() {
*
* @since 5.2.0
*
* @global string $pagenow
* @global string $pagenow The filename of the current screen.
*
* @return bool True if the current endpoint should be protected.
*/
@@ -1746,7 +1748,7 @@ function wp_is_xml_request() {
*
* @since 5.6.1
*
* @global string $pagenow The current page.
* @global string $pagenow The filename of the current screen.
*
* @param string $context The context to check for protection. Accepts 'login', 'admin', and 'front'.
* Defaults to the current context.