[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 17:54:58 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 |
-------------------------------+-----------------------
Changes (by logiclord):
* status: closed => reopened
* resolution: fixed =>
Comment:
Replying to [comment:6 hakre]:
> Replying to [comment:4 logiclord]:
> > Works in my case too
>
> Can you provide a formal specification about which characters
MikeNGarrett was speaking about?
Suppose you have a category like foo'bar
then
get_cat_ID( "foo'bar" )
and
get_cat_ID( "foo\'bar" )
both seems to give correct category id
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14490#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list