Ticket #31850: 31850.2.diff
File 31850.2.diff, 2.7 KB (added by , 9 years ago) |
---|
-
src/wp-admin/includes/theme.php
578 578 if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) { 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 ) 584 584 ) ); -
src/wp-admin/menu.php
156 156 $menu[60] = array( __( 'Appearance' ), $appearance_cap, 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'dashicons-admin-appearance' ); 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 162 162 if ( current_theme_supports( 'menus' ) || current_theme_supports( 'widgets' ) ) { -
src/wp-admin/nav-menus.php
584 584 ' <a class="page-title-action hide-if-no-customize" href="%1$s">%2$s</a>', 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' ) 590 590 ); -
src/wp-admin/widgets.php
353 353 esc_url( add_query_arg( 354 354 array( 355 355 array( 'autofocus' => array( 'panel' => 'widgets' ) ), 356 'return' => urlencode( wp_unslash( $_SERVER['REQUEST_URI']) )356 'return' => urlencode( remove_query_arg( wp_removable_query_args(), wp_unslash( $_SERVER['REQUEST_URI'] ) ) ) 357 357 ), 358 358 admin_url( 'customize.php' ) 359 359 ) ),