- Timestamp:
- 10/27/2017 05:04:04 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets/class-wp-widget-media-image.php
r41696 r42030 178 178 } 179 179 if ( $attachment ) { 180 $caption = $attachment->post_excerpt; 181 if ( $instance['caption'] ) { 180 $caption = ''; 181 if ( ! isset( $instance['caption'] ) ) { 182 $caption = $attachment->post_excerpt; 183 } elseif ( trim( $instance['caption'] ) ) { 182 184 $caption = $instance['caption']; 183 185 }
Note: See TracChangeset
for help on using the changeset viewer.