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

WordPress Trac wp-trac at lists.automattic.com
Wed May 18 20:10:42 UTC 2011

#17040: Completely ignore ?post_type=page
 Reporter:  scribu        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.2
Component:  General       |     Version:  3.0
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |

Comment (by chrisbliss18):

 @nacin -- Hmm... And here I thought I was completely off base and didn't
 know what I was talking about. Go figure.

 I made a patch based upon what you said. I'm not terribly familiar with
 modifying the query structures, but I believe it does what you were

  1. It replaces the publicly_queryable arg with public in places where
 decisions are made on whether or not a post type is able to be displayed
  2. It changes the page post type to have publicly_queryable set to false.

 I did some tests on this and it allowed for queries of ?page_id and
 ?pagename but produced a home page query when ?post_type=page was

 It definitely needs more testing though by someone much more capable in
 this regard than myself.

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

More information about the wp-trac mailing list