[wp-trac] [WordPress Trac] #22061: If $this->posts is empty, don't do stuff to it

WordPress Trac wp-trac at lists.automattic.com
Mon Oct 1 16:12:57 UTC 2012


#22061: If $this->posts is empty, don't do stuff to it
----------------------------+------------------
 Reporter:  wonderboymusic  |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  3.5
Component:  Query           |     Version:  2.9
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |
----------------------------+------------------

Comment (by ryan):

 I've seen it be an empty string too, usually because of plugins. I believe
 count() returns 1 for empty string.

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


More information about the wp-trac mailing list