[wp-trac] [WordPress Trac] #25706: in_category() returns true if the first parameter is empty
WordPress Trac
noreply at wordpress.org
Sat Oct 26 01:42:18 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 needs-unit-tests |
------------------------------------------+--------------------
Comment (by ericlewis):
attachment:25706.diff
* brings back the empty() check in in_category()
* adds a test for passing falsy values to in_category() which should
return false, as well as testing for a positive result.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25706#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list