Changeset 39146 for trunk/src/wp-content/themes/twentyseventeen/template-parts/post/content-video.php
- Timestamp:
- 11/05/2016 12:44:28 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyseventeen/template-parts/post/content-video.php
r39072 r39146 41 41 <?php 42 42 $content = apply_filters( 'the_content', get_the_content() ); 43 $video = get_media_embedded_in_content( $content, array( 'video', 'object', 'embed', 'iframe' ) ); 43 $video = false; 44 45 // Only get video from the content if a playlist isn't present. 46 if ( false === strpos( $content, 'wp-playlist-script' ) ) { 47 $video = get_media_embedded_in_content( $content, array( 'video', 'object', 'embed', 'iframe' ) ); 48 } 44 49 ?> 45 50
Note: See TracChangeset
for help on using the changeset viewer.