[wp-trac] [WordPress Trac] #34660: Query breaks when nopaging = false and posts_per_page = -1

WordPress Trac noreply at wordpress.org
Wed Nov 11 18:41:03 UTC 2015


#34660: Query breaks when nopaging = false and posts_per_page = -1
--------------------------+------------------------------
 Reporter:  mgibbs189     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------

Comment (by mgibbs189):

 @swissspidy This was discovered from a compatibility issue between 2
 plugins.

 While this is an edge-case, these are both built-in query arguments, and a
 little extra error handling can't hurt. Whenever `posts_per_page = -1`, it
 doesn't make sense to use `nopaging` anyways.

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


More information about the wp-trac mailing list