- Timestamp:
- 06/09/2017 07:28:12 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets/class-wp-widget-media-video.php
r40835 r40892 116 116 } 117 117 118 $src = $instance['url']; 118 119 if ( $attachment ) { 119 120 $src = wp_get_attachment_url( $attachment->ID ); 120 } else {121 122 // Manually add the loop query argument.123 $loop = $instance['loop'] ? '1' : '0';124 $src = empty( $instance['url'] ) ? $instance['url'] : add_query_arg( 'loop', $loop, $instance['url'] );125 121 } 126 122
Note: See TracChangeset
for help on using the changeset viewer.