Make WordPress Core

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#7336 closed defect (bug) (fixed)

Links category can be set to blank

Reported by: SteveAgl Owned by:
Priority: high Milestone: 2.6.1
Component: Administration Version: 2.6
Severity: blocker Keywords: has-patch
Cc: Focuses:

Description

A users signaled he was able (by mistake) to edita a link category, setting its name to nothing and saving it. Now the category show as blank in categories list without the checkbox and with any chance to change it in any way.

I tested it personally and it's true, I didn't check if post categories act in the same way.

Attachments (1)

7336.diff​ (593 bytes ) - added by scohoust 18 years ago.

Download all attachments as: .zip

Change History (5)

#1 @Scott H
18 years ago

Post categories aren't affected (the name is checked in wp_insert_category) but tags are. Not sure whether a fix would be possible in wp_upgrade_term or before that is called otherwise I'd have attempted one.

@scohoust
18 years ago

#2 @scohoust
18 years ago

  • Keywords has-patch added

Patch adds in simple checking of $name in wp_update_term(). Returns WP_Error if empty.

#3 @ryan
18 years ago

  • Resolution → fixed
  • Status new → closed

(In [8393]) Don't allow empty term names. Props scohoust. fixes #7336 for trunk

#4 @ryan
18 years ago

(In [8394]) Don't allow empty term names. Props scohoust. fixes #7336 for 2.6

Note: See TracTickets for help on using tickets.