Changeset 40331
- Timestamp:
- 03/25/2017 01:34:27 PM (8 years ago)
- Location:
- branches/4.7
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
-
branches/4.7/src/wp-admin/includes/theme.php
r39325 r40331 579 579 $customize_action = esc_url( add_query_arg( 580 580 array( 581 'return' => urlencode( esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI']) ) ),581 'return' => urlencode( esc_url_raw( remove_query_arg( wp_removable_query_args(), wp_unslash( $_SERVER['REQUEST_URI'] ) ) ) ), 582 582 ), 583 583 wp_customize_url( $slug ) -
branches/4.7/src/wp-admin/menu.php
r38827 r40331 157 157 $submenu['themes.php'][5] = array( __( 'Themes' ), $appearance_cap, 'themes.php' ); 158 158 159 $customize_url = add_query_arg( 'return', urlencode( wp_unslash( $_SERVER['REQUEST_URI']) ), 'customize.php' );159 $customize_url = add_query_arg( 'return', urlencode( remove_query_arg( wp_removable_query_args(), wp_unslash( $_SERVER['REQUEST_URI'] ) ) ), 'customize.php' ); 160 160 $submenu['themes.php'][6] = array( __( 'Customize' ), 'customize', esc_url( $customize_url ), '', 'hide-if-no-customize' ); 161 161 -
branches/4.7/src/wp-admin/nav-menus.php
r39323 r40331 585 585 esc_url( add_query_arg( array( 586 586 array( 'autofocus' => $focus ), 587 'return' => urlencode( wp_unslash( $_SERVER['REQUEST_URI']) ),587 'return' => urlencode( remove_query_arg( wp_removable_query_args(), wp_unslash( $_SERVER['REQUEST_URI'] ) ) ), 588 588 ), admin_url( 'customize.php' ) ) ), 589 589 __( 'Manage with Live Preview' ) -
branches/4.7/src/wp-admin/widgets.php
r39761 r40331 356 356 array( 357 357 array( 'autofocus' => array( 'panel' => 'widgets' ) ), 358 'return' => urlencode( wp_unslash( $_SERVER['REQUEST_URI']) )358 'return' => urlencode( remove_query_arg( wp_removable_query_args(), wp_unslash( $_SERVER['REQUEST_URI'] ) ) ) 359 359 ), 360 360 admin_url( 'customize.php' )
Note: See TracChangeset
for help on using the changeset viewer.