WordPress.org

Make WordPress Core

Changeset 37768


Ignore:
Timestamp:
06/21/2016 02:15:40 PM (4 years ago)
Author:
ocean90
Message:

Customize: Make sure that preview and return URLs are URLs.

Merge of [37527] to the 4.5 branch.

Location:
branches/4.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.5

  • branches/4.5/src/wp-includes/class-wp-customize-manager.php

    r37077 r37768  
    15431543     */
    15441544    public function set_preview_url( $preview_url ) {
     1545        $preview_url = esc_url_raw( $preview_url );
    15451546        $this->preview_url = wp_validate_redirect( $preview_url, home_url( '/' ) );
    15461547    }
     
    15741575     */
    15751576    public function set_return_url( $return_url ) {
     1577        $return_url = esc_url_raw( $return_url );
    15761578        $return_url = remove_query_arg( wp_removable_query_args(), $return_url );
    15771579        $return_url = wp_validate_redirect( $return_url );
Note: See TracChangeset for help on using the changeset viewer.