Changeset 23899 for trunk/wp-includes/media.php
- Timestamp:
- 04/04/2013 08:09:02 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/media.php
r23873 r23899 2032 2032 * @return string 2033 2033 */ 2034 function get_the_ media( $type, &$post = null ) {2034 function get_the_post_format_media( $type, &$post = null ) { 2035 2035 global $wp_embed; 2036 2036 … … 2119 2119 * 2120 2120 */ 2121 function the_ video() {2122 echo get_the_ media( 'video' );2121 function the_post_format_video() { 2122 echo get_the_post_format_media( 'video' ); 2123 2123 } 2124 2124 /** … … 2128 2128 * 2129 2129 */ 2130 function the_ audio() {2131 echo get_the_ media( 'audio' );2130 function the_post_format_audio() { 2131 echo get_the_post_format_media( 'audio' ); 2132 2132 } 2133 2133 … … 2361 2361 * @param WP_Post $post Optional. Used instead of global $post when passed. 2362 2362 */ 2363 function get_the_ image( $attached_size = 'full', &$post = null ) {2363 function get_the_post_format_image( $attached_size = 'full', &$post = null ) { 2364 2364 if ( empty( $post ) ) 2365 2365 $post = get_post(); … … 2436 2436 * @param string $attached_size If an attached image is found, the size to display it. 2437 2437 */ 2438 function the_ image( $attached_size = 'full' ) {2439 echo get_the_ image( $attached_size );2440 } 2438 function the_post_format_image( $attached_size = 'full' ) { 2439 echo get_the_post_format_image( $attached_size ); 2440 }
Note: See TracChangeset
for help on using the changeset viewer.