- Timestamp:
- 07/14/2017 05:33:44 PM (7 years ago)
- Location:
- branches/4.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.8
-
branches/4.8/src/wp-includes/widgets/class-wp-widget-media-video.php
r40835 r41054 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.