WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/22/2017 11:03:28 PM (3 years ago)
Author:
westonruter
Message:

Customize: Prevent links to customize.php from being generated which have query vars from wp_removable_query_args() present.

Props dlh.
See #23367, #32692.
Fixes #31850.

File:
1 edited

Legend:

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

    r39760 r40313  
    358358            array(
    359359                array( 'autofocus' => array( 'panel' => 'widgets' ) ),
    360                 'return' => urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) )
     360                'return' => urlencode( remove_query_arg( wp_removable_query_args(), wp_unslash( $_SERVER['REQUEST_URI'] ) ) )
    361361            ),
    362362            admin_url( 'customize.php' )
Note: See TracChangeset for help on using the changeset viewer.