mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-27 01:38:35 +00:00
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. Built from https://develop.svn.wordpress.org/trunk@35635 git-svn-id: http://core.svn.wordpress.org/trunk@35599 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
329bec7ca1
commit
268626d061
@ -1476,7 +1476,7 @@ final class WP_Customize_Manager {
|
|||||||
$referer = wp_get_referer();
|
$referer = wp_get_referer();
|
||||||
if ( $this->return_url ) {
|
if ( $this->return_url ) {
|
||||||
$return_url = $this->return_url;
|
$return_url = $this->return_url;
|
||||||
} else if ( $referer ) {
|
} else if ( $referer && 'customize.php' !== basename( parse_url( $referer, PHP_URL_PATH ) ) ) {
|
||||||
$return_url = $referer;
|
$return_url = $referer;
|
||||||
} else if ( $this->preview_url ) {
|
} else if ( $this->preview_url ) {
|
||||||
$return_url = $this->preview_url;
|
$return_url = $this->preview_url;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-beta4-35634';
|
$wp_version = '4.4-beta4-35635';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user