[wp-trac] [WordPress Trac] #14490: function "get cat ID" fails if category name has an apostrophe

WordPress Trac wp-trac at lists.automattic.com
Sat Mar 19 18:10:25 UTC 2011


#14490: function "get cat ID" fails if category name has an apostrophe
-------------------------------+-----------------------
 Reporter:  iamronen           |       Owner:
     Type:  defect (bug)       |      Status:  reopened
 Priority:  normal             |   Milestone:
Component:  Taxonomy           |     Version:  3.1
 Severity:  minor              |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+-----------------------

Comment (by logiclord):

 i think i understood what is your issue
 when you create a category say Test'Cat it is shown as Test’Cat but
 actually its Test'Cat
 and when you use get_cat_ID( "Test’Cat" ) it doesn't give a matching ID so
 do not go by ’ use ' that you typed while creating that category.

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


More information about the wp-trac mailing list