Changeset 39146
- Timestamp:
- 11/05/2016 12:44:28 AM (8 years ago)
- Location:
- trunk/src/wp-content/themes/twentyseventeen/template-parts/post
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyseventeen/template-parts/post/content-audio.php
r39072 r39146 42 42 <?php 43 43 $content = apply_filters( 'the_content', get_the_content() ); 44 $audio = get_media_embedded_in_content( $content, array( 'audio' ) ); 44 $audio = false; 45 46 // Only get audio from the content if a playlist isn't present. 47 if ( false === strpos( $content, 'wp-playlist-script' ) ) { 48 $audio = get_media_embedded_in_content( $content, array( 'audio' ) ); 49 } 50 45 51 ?> 46 52 -
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.