Make WordPress Core

Changeset 50164


Ignore:
Timestamp:
02/02/2021 08:35:06 PM (4 years ago)
Author:
SergeyBiryukov
Message:

General: Restore the $pagenow global in get_home_url().

This fixes test failures in Tests_WP_Resource_Hints.

Follow-up to [50156].

See #52421.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/link-template.php

    r50156 r50164  
    32543254 * @since 3.0.0
    32553255 *
     3256 * @global string $pagenow
     3257 *
    32563258 * @param int         $blog_id Optional. Site ID. Default null (current site).
    32573259 * @param string      $path    Optional. Path relative to the home URL. Default empty.
     
    32613263 */
    32623264function get_home_url( $blog_id = null, $path = '', $scheme = null ) {
     3265    global $pagenow;
     3266
    32633267    $orig_scheme = $scheme;
    32643268
Note: See TracChangeset for help on using the changeset viewer.