[wp-trac] [WordPress Trac] #16567: Can't create single-character categories

WordPress Trac wp-trac at lists.automattic.com
Wed Feb 16 03:35:11 UTC 2011

#16567: Can't create single-character categories
 Reporter:  jeffreymcmanus           |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  General                  |     Version:  3.0.5
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
Changes (by garyc40):

 * keywords:   => has-patch needs-testing


 The conditional check on line 263, `admin-ajax.php` seems to be
 unnecessary, and introduces edge case like this.

 Removing the conditional check seems to fix this problem and produce no
 side effects (the same kind of check is performed within `wp_insert_term`,
 and it handles the case better by creating the term anyways with a
 numerical suffix).

 Attached patch does this [attachment:16567.diff].

Ticket URL: <http://core.trac.wordpress.org/ticket/16567#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list