Ticket #5293 (closed defect (bug): fixed)

Opened 4 years ago

Last modified 4 years ago

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

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

Description

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

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

Change History

comment:1   ryan4 years ago

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

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

Note: See TracTickets for help on using tickets.