[wp-trac] [WordPress Trac] #25706: in_category() returns true if the first parameter is empty

WordPress Trac noreply at wordpress.org
Fri Oct 25 21:25:05 UTC 2013


#25706: in_category() returns true if the first parameter is empty
--------------------------+--------------------
 Reporter:  n.uddin.w     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.7.1
Component:  Taxonomy      |     Version:  3.7
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |
--------------------------+--------------------

Comment (by ocean90):

 This belongs to [25119]. There was an `empty()` check which is gone now.

 `has_tag()` returns also true, but in 3.6 too.  Should we add the
 `empty()` check to `has_term()` directly?

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


More information about the wp-trac mailing list