Changeset 35635
- Timestamp:
- 11/13/2015 05:24:28 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-manager.php
r35553 r35635 1477 1477 if ( $this->return_url ) { 1478 1478 $return_url = $this->return_url; 1479 } else if ( $referer ) {1479 } else if ( $referer && 'customize.php' !== basename( parse_url( $referer, PHP_URL_PATH ) ) ) { 1480 1480 $return_url = $referer; 1481 1481 } else if ( $this->preview_url ) { -
trunk/tests/phpunit/tests/customize/manager.php
r35553 r35635 261 261 $preview_url = home_url( '/foo/' ); 262 262 $this->manager->set_preview_url( $preview_url ); 263 $this->assertEquals( $preview_url, $this->manager->get_return_url() ); 264 265 $_SERVER['HTTP_REFERER'] = wp_slash( admin_url( 'customize.php' ) ); 263 266 $this->assertEquals( $preview_url, $this->manager->get_return_url() ); 264 267
Note: See TracChangeset
for help on using the changeset viewer.