WordPress.org

Make WordPress Core

Opened 5 months ago

Last modified 8 weeks ago

#25875 new defect (bug)

Issue with category named "$"

Reported by: MMDeveloper Owned by:
Milestone: Awaiting Review Priority: normal
Severity: minor Version:
Component: Taxonomy Keywords: reporter-feedback
Focuses: Cc:

Description (last modified by johnbillion)

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) ) {

Change History (3)

comment:1 nacin3 months ago

  • Component changed from General to Taxonomy

comment:2 johnbillion8 weeks ago

  • Description modified (diff)
  • Keywords reporter-feedback added
  • Type changed from feature request to defect (bug)

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.

comment:3 ocean908 weeks ago

  • Summary changed from Category Names to Issue with category named "$"
Note: See TracTickets for help on using tickets.