Make WordPress Core

Changeset 37769


Ignore:
Timestamp:
06/21/2016 02:17:08 PM (9 years ago)
Author:
ocean90
Message:

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

Merge of [37527] to the 4.4 branch.

File:
1 edited

Legend:

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

    r36363 r37769  
    14901490     */
    14911491    public function set_preview_url( $preview_url ) {
     1492        $preview_url = esc_url_raw( $preview_url );
    14921493        $this->preview_url = wp_validate_redirect( $preview_url, home_url( '/' ) );
    14931494    }
     
    15211522     */
    15221523    public function set_return_url( $return_url ) {
     1524        $return_url = esc_url_raw( $return_url );
    15231525        $return_url = remove_query_arg( wp_removable_query_args(), $return_url );
    15241526        $return_url = wp_validate_redirect( $return_url );
Note: See TracChangeset for help on using the changeset viewer.