[wp-trac] [WordPress Trac] #24354: get_cat_id() fails with category names containing ampersand

WordPress Trac noreply at wordpress.org
Fri May 17 10:04:30 UTC 2013


#24354: get_cat_id() fails with category names containing ampersand
----------------------------------------+------------------------------
 Reporter:  Kenshino                    |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Taxonomy                    |     Version:  3.5.1
 Severity:  normal                      |  Resolution:
 Keywords:  needs-testing dev-feedback  |
----------------------------------------+------------------------------

Comment (by johnbillion):

 The problem will be due to #11311. Entities in term names are encoded when
 they're saved to the database. Using `get_cat_id('News & Media')`
 should work, as unintuitive as it is.

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


More information about the wp-trac mailing list