Changeset 31645 for trunk/src/wp-includes/post-template.php
- Timestamp:
- 03/06/2015 08:25:09 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-template.php
r31600 r31645 1551 1551 return $content; 1552 1552 1553 if ( 0 === strpos( $post->post_mime_type, 'video') ) {1553 if ( wp_attachment_is( 'video', $post ) ) { 1554 1554 $meta = wp_get_attachment_metadata( get_the_ID() ); 1555 1555 $atts = array( 'src' => wp_get_attachment_url() ); … … 1562 1562 } 1563 1563 $p = wp_video_shortcode( $atts ); 1564 } elseif ( 0 === strpos( $post->post_mime_type, 'audio') ) {1564 } elseif ( wp_attachment_is( 'audio', $post ) ) { 1565 1565 $p = wp_audio_shortcode( array( 'src' => wp_get_attachment_url() ) ); 1566 1566 } else {
Note: See TracChangeset
for help on using the changeset viewer.