[wp-trac] [WordPress Trac] #30018: 404 error and redirect when using url with query string

WordPress Trac noreply at wordpress.org
Tue Sep 15 18:53:14 UTC 2015


#30018: 404 error and redirect when using url with query string
-------------------------------+-----------------------------
 Reporter:  pmwp               |       Owner:  wonderboymusic
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:  4.4
Component:  Posts, Post Types  |     Version:  4.0
 Severity:  normal             |  Resolution:  fixed
 Keywords:  has-patch          |     Focuses:
-------------------------------+-----------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"34215"]:
 {{{
 #!CommitTicketReference repository="" revision="34215"
 In `WP::parse_request()`, don't add query vars of non-viewable post types
 to `WP::public_query_vars`. In `register_post_type()`, don't add query
 vars of non-viewable post types to `WP::public_query_vars`.
 In `_unregister_post_type()` (unit tests), don't add query vars of non-
 viewable post types to `WP::public_query_vars`.

 Adds unit test.

 Fixes #30018.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30018#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list