[wp-trac] [WordPress Trac] #18386: Bug in custom query when "Front page displays": "A static page"

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 12 11:19:56 UTC 2011


#18386: Bug in custom query when "Front page displays": "A static page"
------------------------------------+------------------------------
 Reporter:  CyberSpy                |       Owner:
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Query                   |     Version:  3.2.1
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |
------------------------------------+------------------------------
Changes (by dd32):

 * keywords:  dev-feedback => dev-feedback has-patch


Comment:

 Confirmed. Taxonomy Queries are not processed when page_for_posts is set;
 As a result, the category exclusion code is never run causing query_posts
 to ~~not be effective~~ not work as expected..

 Attached patch deals with the taxonomy side of things, however Author
 specification and a few other things might also be affected (those in the
 else branch here: [http://core.trac.wordpress.org/browser/trunk/wp-
 includes/query.php#L1467 Line 1467 of query.php])

 (note: I havn't tested any side effects of the patch, I'm hoping someone
 who feels like digging into WP_Query will take it and run :))

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18386#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list