[wp-trac] [WordPress Trac] #20628: Splitting the main query can result in long query strings that segfault

WordPress Trac wp-trac at lists.automattic.com
Tue May 8 21:25:10 UTC 2012


#20628: Splitting the main query can result in long query strings that segfault
--------------------------+------------------
 Reporter:  ryan          |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.4
Component:  Query         |     Version:  3.4
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------

Comment (by scribu):

 How about we catch it earlier on, say in parse_query()?

 {{{
 if ( $q['posts_per_page'] >= 9999 )
   $q['posts_per_page'] = -1;
 }}}

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


More information about the wp-trac mailing list