[wp-trac] [WordPress Trac] #42350: Caption on media image widget can't be empty

WordPress Trac noreply at wordpress.org
Thu Oct 26 22:40:17 UTC 2017


#42350: Caption on media image widget can't be empty
--------------------------+-----------------------------
 Reporter:  miyauchi      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Widgets       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 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

 [[Image(https://www.evernote.com/l/ABVM0O7iS0hIK4d5FuVW9oy4qzIcPjg098kB/image.png)]]

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42350>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list