[wp-trac] [WordPress Trac] #32692: Remove removable query vars from certain redirect URLs

WordPress Trac noreply at wordpress.org
Thu Jun 18 01:37:21 UTC 2015


#32692: Remove removable query vars from certain redirect URLs
----------------------------+----------------------------------------
 Reporter:  johnbillion     |      Owner:
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  4.2
 Severity:  minor           |   Keywords:  needs-patch good-first-bug
  Focuses:                  |
----------------------------+----------------------------------------
 Scenario:

  1. Edit a post and hit 'Update' or 'Publish'
  2. Navigate to Appearance -> Customize
  3. Do all the things
  4. Close the Customizer

 Note that you are returned to the post editing screen, but the 'Post
 updated' message persists because the `message` query var is still
 present.

 #23367 introduced a list of removable query vars which get hidden from the
 page's URL once the page loads. This list of query vars should be
 abstracted into its own function so the list can be reused. It can then be
 used to remove these query vars from the redirect destination URL after
 closing the Customizer, and maybe also in other situations (logging in?).

 My [https://wordpress.org/plugins/user-switching/ User Switching plugin]
 already does this when switching between users, but it has to implement
 its own list of removable query vars.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32692>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list