Docs: Document the usage of $pagenow global in a few functions.

See #51800.
Built from https://develop.svn.wordpress.org/trunk@50407


git-svn-id: http://core.svn.wordpress.org/trunk@50018 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2021-02-22 19:18:12 +00:00
parent c6c1ef3c32
commit ddca2ed164
6 changed files with 11 additions and 1 deletions

View File

@ -1018,6 +1018,8 @@ jQuery(document).ready( function($) {
*
* @since 4.6.0
*
* @global string $pagenow
*
* @param array $args {
* Optional. Array or string of Query parameters. Default empty array.
*

View File

@ -2463,6 +2463,8 @@ function resume_plugin( $plugin, $redirect = '' ) {
* Renders an admin notice in case some plugins have been paused due to errors.
*
* @since 5.2.0
*
* @global string $pagenow
*/
function paused_plugins_notice() {
if ( 'plugins.php' === $GLOBALS['pagenow'] ) {

View File

@ -1127,6 +1127,8 @@ function resume_theme( $theme, $redirect = '' ) {
* Renders an admin notice in case some themes have been paused due to errors.
*
* @since 5.2.0
*
* @global string $pagenow
*/
function paused_themes_notice() {
if ( 'themes.php' === $GLOBALS['pagenow'] ) {

View File

@ -65,6 +65,8 @@ class WP_Recovery_Mode_Link_Service {
*
* @since 5.2.0
*
* @global string $pagenow
*
* @param int $ttl Number of seconds the link should be valid for.
*/
public function handle_begin_link( $ttl ) {

View File

@ -938,6 +938,8 @@ function wp_is_recovery_mode() {
*
* @since 5.2.0
*
* @global string $pagenow
*
* @return bool True if the current endpoint should be protected.
*/
function is_protected_endpoint() {

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.7-beta3-50406';
$wp_version = '5.7-beta3-50407';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.