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

WordPress Trac noreply at wordpress.org
Fri Oct 25 21:21:20 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   |
--------------------------+--------------------
Changes (by ocean90):

 * keywords:  has-patch => needs-patch
 * component:  General => Taxonomy
 * milestone:  Awaiting Review => 3.7.1


Comment:

 Could reproduce this.

 3.6:
 `var_dump( in_category( '', 1177) ); // bool(false)`

 3.7:
 `var_dump( in_category( '', 1177) ); // bool(true)`

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


More information about the wp-trac mailing list