~canonical-sysadmins/wordpress/4.7.1

« back to all changes in this revision

Viewing changes to wp-includes/class-wp-customize-manager.php

  • Committer: Barry Price
  • Date: 2016-06-22 02:23:41 UTC
  • mfrom: (1.1.17 upstream)
  • Revision ID: barry.price@canonical.com-20160622022341-9qrp2nesacwfx017
Merge WP4.5.3 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1542
1542
         * @param string $preview_url URL to be previewed.
1543
1543
         */
1544
1544
        public function set_preview_url( $preview_url ) {
 
1545
                $preview_url = esc_url_raw( $preview_url );
1545
1546
                $this->preview_url = wp_validate_redirect( $preview_url, home_url( '/' ) );
1546
1547
        }
1547
1548
 
1573
1574
         * @param string $return_url URL for return link.
1574
1575
         */
1575
1576
        public function set_return_url( $return_url ) {
 
1577
                $return_url = esc_url_raw( $return_url );
1576
1578
                $return_url = remove_query_arg( wp_removable_query_args(), $return_url );
1577
1579
                $return_url = wp_validate_redirect( $return_url );
1578
1580
                $this->return_url = $return_url;