Opened 14 years ago
Closed 14 years ago
#11805 closed defect (bug) (fixed)
Can't delete alternate text from image in media library
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | minor | Version: | 2.9.1 |
Component: | Media | Keywords: | has-patch tested |
Focuses: | Cc: |
Description
Steps to reproduce:
- Upload an image to the media library and fill in the "Alternate text" field. Save the data.
- In the media library, click to edit the image.
- Delete all text in the Alternate text field and click Update Media.
- In the media library, click to edit the image again and notice that the alt text has NOT been deleted.
(The same thing happens using the pop-up style media editor from within the post editor.)
Work-around: delete all text in the Alternate text field, then type a space in the field. When updating, the alt text (including the space) will be removed.
Attachments (2)
Change History (9)
#4
@
14 years ago
- Cc reaperhulk added
- Keywords has-patch added; needs-patch removed
This appears to be caused by the media_upload_form_handler testing for both isset() and !empty() on the image_alt. If you remove the !empty() it behaves as expected.
Potential issue with fix: If there are any pages that use media_upload_form_handler and pass an empty string (rather than excluding image_alt entirely when they don't want to touch it) this could cause a problem.
Note: See
TracTickets for help on using
tickets.
Confirmed in 3.0-alpha.