WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 5 months ago

#35550 new defect (bug)

AllPosts page: Tags field does not accept characters <>

Reported by: antonrinas Owned by:
Milestone: Priority: normal
Severity: minor Version: 4.4.1
Component: Posts, Post Types Keywords:
Focuses: Cc:
PR Number:

Description

STEPS TO REPRODUCE

  1. Log in as administrator and create new post "Test post".
  2. Go to AllPosts page. Check "Test post" and perform "Edit" bulk action.
  3. Type into "Tags" 2 characters "<>". Click "Update" EXPECTED RESULT: Characters <> are added as a tag. EXPECTED RESULT: Characters <> are not added as a tag.

Change History (2)

#1 @antonrinas
4 years ago

  • Severity changed from normal to minor

#2 @Ipstenu
4 years ago

That's an expected error.

If you try to add or edit a tag NAME to be <> from https://local.plugins.dev/wp-admin/edit-tags.php it tells you it cannot edit the tag

If you try to edit the tag slug to be <>, it reverts to the slugified tagname (no matter what your slug was before - so if you had a tag with the name 'foobar' and a slug as 'notfoo', putting in <> makes the slug foobar ... Not sure if that's wrong though it was unexpected).

That said, <> is an invalid tag name, so perhaps an error should be thrown when a post cannot be updated?

Last edited 4 years ago by Ipstenu (previous) (diff)
Note: See TracTickets for help on using tickets.