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

WordPress Trac noreply at wordpress.org
Wed Nov 11 16:06:22 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        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Whenever `nopaging = false` and `posts_per_page = -1`, the SQL query
 breaks because the LIMIT clause is set to: `LIMIT 0, -1`

 This patch ensures that `nopaging` is set to TRUE whenever `posts_per_page
 = -1`.

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


More information about the wp-trac mailing list