WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/02/2015 11:28:11 AM (6 years ago)
Author:
johnbillion
Message:

Introduce wp_removable_query_args(), which returns an array of single-use query variables which can be removed from a URL.

Also applies the function to the return URL when the Customizer is closed.

Fixes #32692
Props swissspidy, Mte90

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/customize.php

    r33599 r33849  
    2222if ( $return ) {
    2323    $return = wp_unslash( $return );
     24    $return = remove_query_arg( wp_removable_query_args(), $return );
    2425    $return = wp_validate_redirect( $return );
    2526}
Note: See TracChangeset for help on using the changeset viewer.