[wp-trac] [WordPress Trac] #17040: Completely ignore ?post_type=page

WordPress Trac wp-trac at lists.automattic.com
Sun Apr 3 23:12:45 UTC 2011


#17040: Completely ignore ?post_type=page
--------------------------+----------------------------
 Reporter:  scribu        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Future Release
Component:  General       |    Version:
 Severity:  normal        |   Keywords:  needs-patch
--------------------------+----------------------------
 Follow-up to #17033

 If you go to ?post_type=page, you will get a list of pages, displayed as
 posts, even though the 'page' post type doesn't have {{{'has_archive' =>
 true}}}.

 That is very unexpected behaviour.

 The 'post_type' arg should be stripped out before it reaches $wp_query, so
 that visitors can't access this view, unless explicitly enabled by a
 plugin.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17040>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list