Changeset 27682
- Timestamp:
- 03/24/2014 02:38:31 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-template.php
r27676 r27682 1447 1447 return $content; 1448 1448 1449 if ( wp_attachment_is_image() ) :1449 if ( wp_attachment_is_image() ) { 1450 1450 $p = '<p class="attachment">'; 1451 1451 // show the medium sized image representation of the attachment if available, and link to the raw file 1452 1452 $p .= wp_get_attachment_link(0, 'medium', false); 1453 1453 $p .= '</p>'; 1454 elseif ( 0 === strpos( $post->post_mime_type, 'video' ) ):1454 } elseif ( 0 === strpos( $post->post_mime_type, 'video' ) ) { 1455 1455 $meta = wp_get_attachment_metadata( get_the_ID() ); 1456 1456 $atts = array( 'src' => wp_get_attachment_url() ); … … 1460 1460 } 1461 1461 $p = wp_video_shortcode( $atts ); 1462 elseif ( 0 === strpos( $post->post_mime_type, 'audio' ) ):1462 } elseif ( 0 === strpos( $post->post_mime_type, 'audio' ) ) { 1463 1463 $p = wp_audio_shortcode( array( 'src' => wp_get_attachment_url() ) ); 1464 endif;1464 } 1465 1465 1466 1466 /**
Note: See TracChangeset
for help on using the changeset viewer.