Make WordPress Core

Opened 11 years ago

Last modified 7 years ago

#35550 new defect (bug)

AllPosts page: Tags field does not accept characters <>

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

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
11 years ago

  • Severity normal → minor

#2 @Ipstenu
11 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 11 years ago by Ipstenu (previous) (diff)
Note: See TracTickets for help on using tickets.