#7336 closed defect (bug) (fixed)
Links category can be set to blank
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | high | Milestone: | 2.6.1 |
| Component: | Administration | Version: | 2.6 |
| Severity: | blocker | Keywords: | has-patch |
| Cc: |
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)
Change History (5)
- Keywords has-patch added
Patch adds in simple checking of $name in wp_update_term(). Returns WP_Error if empty.
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.

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.