[wp-trac] [WordPress Trac] #10663: Category name handling wrong function is_category
WordPress Trac
wp-trac at lists.automattic.com
Sat Nov 28 12:58:45 UTC 2009
#10663: Category name handling wrong function is_category
----------------------------+-----------------------------------------------
Reporter: Azaroth | Type: defect (bug)
Status: new | Priority: normal
Milestone: Future Release | Component: Template
Version: 2.8.4 | Severity: normal
Keywords: needs-patch |
----------------------------+-----------------------------------------------
Comment(by scribu):
> Changing the in_array function to a simple equal comparison makes
everything work as expected.
The problem is that you have to also be able to do this:
{{{is_category(array(1, 2))}}}
{{{is_category(array('cat-slug-a', 'cat-slug-b'))}}}
{{{is_category(array('Cat Name A', 'Cat Name B'))}}}
{{{is_category(array(1, 'cat-slug-a', 'Cat Name A'))}}}
Of course, this can cause all sorts of ambiguities.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10663#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list