Opened 7 years ago
Closed 7 years ago
#42350 closed defect (bug) (fixed)
Caption on media image widget can't be empty
Reported by: | miyauchi | Owned by: | westonruter |
---|---|---|---|
Milestone: | 4.9 | Priority: | normal |
Severity: | normal | Version: | 4.9 |
Component: | Widgets | Keywords: | has-patch |
Focuses: | Cc: |
Description
If we insert a image which has a caption text and we try to clear the caption on the image details screen at the widgets page.
Then caption text always will be used from the value of $attachment->post_excerpt
.
So, we can't be empty caption text at the image widget.
Is this behavior intentional?
I guess we should remove line 180.
https://github.com/WordPress/wordpress-develop/blob/master/src/wp-includes/widgets/class-wp-widget-media-image.php#L180-L183
Attachments (2)
Change History (5)
Note: See
TracTickets for help on using
tickets.
I added a patch to fix this problem.