Make WordPress Core

Changeset 53059


Ignore:
Timestamp:
04/04/2022 12:02:00 PM (23 months ago)
Author:
SergeyBiryukov
Message:

Docs: Consistently document the $pagenow global in WP_Customize_Manage methods.

Follow-up to [41839].

Props jontyravi, bhrugesh12, kebbet.
Fixes #55499.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r53057 r53059  
    32673267            return;
    32683268        }
     3269
    32693270        $lock = get_post_meta( $changeset_post_id, '_edit_lock', true );
    32703271        $lock = explode( ':', $lock );
     
    32843285     *
    32853286     * @since 4.9.0
     3287     *
     3288     * @global string $pagenow
     3289     *
    32863290     * @param array $settings Current settings to filter.
    32873291     * @return array Heartbeat settings.
     
    32893293    public function add_customize_screen_to_heartbeat_settings( $settings ) {
    32903294        global $pagenow;
     3295
    32913296        if ( 'customize.php' === $pagenow ) {
    32923297            $settings['screenId'] = 'customize';
    32933298        }
     3299
    32943300        return $settings;
    32953301    }
     
    33073313            return null;
    33083314        }
     3315
    33093316        $lock_user = get_userdata( $user_id );
     3317
    33103318        if ( ! $lock_user ) {
    33113319            return null;
    33123320        }
     3321
    33133322        return array(
    33143323            'id'     => $lock_user->ID,
Note: See TracChangeset for help on using the changeset viewer.