[wp-trac] [WordPress Trac] #25875: Category Names
WordPress Trac
noreply at wordpress.org
Sun Feb 23 03:28:37 UTC 2014
#25875: Category Names
-------------------------------+------------------------------
Reporter: MMDeveloper | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version:
Severity: minor | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Changes (by johnbillion):
* keywords: => reporter-feedback
* type: feature request => defect (bug)
Old description:
> You are able to submit a category name with a $. When you assign that
> category, it crashes the non-admin portion of the site. It is possible to
> unselect the category, but I didn't know this was the reason and I lost
> about 3 hours trying the find out what the issue was. I think Wordpress
> should either remove the $ or save it as \$. But since it will create a
> category slug, I think it should be removed.
>
> Issue on wp-includes/class-wp.php. Line:
>
> if ( preg_match("#^$match#", $request_match, $matches) ||
> preg_match("#^$match#",
> urldecode($request_match), $matches) ) {
New description:
You are able to submit a category name with a $. When you assign that
category, it crashes the non-admin portion of the site. It is possible to
unselect the category, but I didn't know this was the reason and I lost
about 3 hours trying the find out what the issue was. I think Wordpress
should either remove the $ or save it as \$. But since it will create a
category slug, I think it should be removed.
Issue on wp-includes/class-wp.php. Line:
{{{
if ( preg_match("#^$match#", $request_match, $matches) ||
preg_match("#^$match#", urldecode($request_match), $matches) ) {
}}}
--
Comment:
I'm unable to reproduce a problem with a category named "$" on the front
end. Can you explain what you mean by "When you assign that category, it
crashes the non-admin portion of the site"? What exactly crashes? What
errors do you see?
----
On a related note, it's not possible to create a category called "$" on
the post editing screen if one doesn't already exist. It is possible to
create it on the category management screen. The same applies to any
category with a name that only contains characters that get stripped from
the term slug. There may be an existing ticket for this.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/25875#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list