Changeset 24024
- Timestamp:
- 04/18/2013 12:40:36 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post-formats.php
r24021 r24024 27 27 <?php 28 28 if ( is_numeric( $value ) ) { 29 $format_meta['image'] = absint( $value ); 30 $image = wp_get_attachment_url( $format_meta['image'] ); 31 printf( '<img src="%s" alt="%s" />', esc_url( $image ), get_the_title( $format_meta['image'] ) ); 29 $image = wp_get_attachment_url( $value ); 30 printf( '<img src="%s" alt="%s" />', esc_url( $image ), get_the_title( $value ) ); 32 31 } elseif ( preg_match( '/' . get_shortcode_regex() . '/s', $value ) ) { 33 32 echo do_shortcode( $value ); … … 78 77 <?php 79 78 if ( is_numeric( $value ) ) { 80 $ url= wp_get_attachment_url( $value );81 echo do_shortcode( sprintf( '[video src="%s"]', $ url) );79 $video = wp_get_attachment_url( $value ); 80 echo do_shortcode( sprintf( '[video src="%s"]', $video ) ); 82 81 } elseif ( preg_match( '/' . get_shortcode_regex() . '/s', $value ) ) { 83 82 echo do_shortcode( $value ); … … 116 115 <?php 117 116 if ( is_numeric( $value ) ) { 118 $ url= wp_get_attachment_url( $value );119 echo do_shortcode( sprintf( '[audio src="%s"]', $ url) );117 $audio = wp_get_attachment_url( $value ); 118 echo do_shortcode( sprintf( '[audio src="%s"]', $audio ) ); 120 119 } elseif ( preg_match( '/' . get_shortcode_regex() . '/s', $value ) ) { 121 120 echo do_shortcode( $value );
Note: See TracChangeset
for help on using the changeset viewer.