Make WordPress Core

Opened 12 years ago

Closed 12 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:
PR Number:


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 12 years ago.
Trims whitespace and trailing commas.

Download all attachments as: .zip

Change History (4)

12 years ago

Trims whitespace and trailing commas.

#1 @ionfish
12 years ago

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

#2 @lloydbudd
12 years ago

  • Milestone changed from 2.3.2 to 2.4

#3 @westi
12 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.