Make WordPress Core


Ignore:
Timestamp:
11/13/2015 05:24:28 AM (8 years ago)
Author:
westonruter
Message:

Customize: Exclude referer URL from being used for Close link if it is customize.php.

This fixes an edge case where the Close button could never link the user out of the Customizer, if the user initially accessed it without a url param and then clicked a link (provided by a plugin) that took them to another customize.php URL.

See #32637.

File:
1 edited

Legend:

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

    r35553 r35635  
    14771477        if ( $this->return_url ) {
    14781478            $return_url = $this->return_url;
    1479         } else if ( $referer ) {
     1479        } else if ( $referer && 'customize.php' !== basename( parse_url( $referer, PHP_URL_PATH ) ) ) {
    14801480            $return_url = $referer;
    14811481        } else if ( $this->preview_url ) {
Note: See TracChangeset for help on using the changeset viewer.