Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#5412 closed defect (bug) (fixed)

Trailing comma creates blank tag

Reported by: matt Owned by: ionfish
Milestone: 2.5 Priority: normal
Severity: normal Version: 2.3
Component: Administration Keywords: has-patch 2nd-opinion
Focuses: Cc:


In the tag box, put a trailing comma, like this:


It will create a blank tag and attach it to the post.

Expected: tags with nothing but whitespace aren't created.

Attachments (1)

dont_add_blank_tags.patch (455 bytes) - added by ionfish 6 years ago.
Trims whitespace and trailing commas.

Download all attachments as: .zip

Change History (4)

ionfish6 years ago

Trims whitespace and trailing commas.

comment:1 ionfish6 years ago

  • Keywords has-patch 2nd-opinion added
  • Owner changed from anonymous to ionfish
  • Status changed from new to assigned

comment:2 lloydbudd6 years ago

  • Milestone changed from 2.3.2 to 2.4

comment:3 westi6 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [6407]) Don't create empty tags. Fixes #5412 props ionfish

Note: See TracTickets for help on using tickets.