mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Docs: Document the usage of $pagenow global in a few functions.
See #51800. git-svn-id: https://develop.svn.wordpress.org/trunk@50407 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
cebbabbe21
commit
aaf3fc57fc
@ -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.
|
||||
*
|
||||
|
||||
@ -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'] ) {
|
||||
|
||||
@ -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'] ) {
|
||||
|
||||
@ -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 ) {
|
||||
|
||||
@ -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() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user