Changeset 39146 for trunk/src/wp-content/themes/twentyseventeen/template-parts/post/content-audio.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-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
Note: See TracChangeset
for help on using the changeset viewer.