Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#5293 closed defect (bug) (fixed)

'0' is not a valid title according to sanitize_title()

Reported by: mdawaffe's profile mdawaffe Owned by:
Milestone: 2.5 Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch 2nd-opinion
Focuses: Cc:


Rather than allow a title of '0', sanitize_title() returns ''.

This means no taxonomy term may be named '0'.

I'm not sure if there are undesired side effects to changing this.

Attachments (1)

5293.diff (869 bytes) - added by mdawaffe 15 years ago.

Download all attachments as: .zip

Change History (2)

15 years ago

#1 @ryan
15 years ago

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

(In [6409]) Allows 0 titles when sanitizing. Props mdawaffe. fixes #5293

Note: See TracTickets for help on using tickets.