Changeset 23899
- Timestamp:
- 04/04/2013 08:09:02 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyeleven/functions.php
r23824 r23899 466 466 */ 467 467 function twentyeleven_get_first_url() { 468 $has_url = function_exists( 'get_the_ url' ) ? get_the_url() : false;468 $has_url = function_exists( 'get_the_post_format_url' ) ? get_the_post_format_url() : false; 469 469 470 470 if ( ! $has_url ) -
trunk/wp-content/themes/twentythirteen/content-audio.php
r23836 r23899 22 22 <div class="entry-media"> 23 23 <div class="audio-content"> 24 <?php the_ audio(); ?>24 <?php the_post_format_audio(); ?> 25 25 </div><!-- .audio-content --> 26 26 </div><!-- .entry-media --> -
trunk/wp-content/themes/twentythirteen/content-chat.php
r23806 r23899 21 21 22 22 <div class="entry-content"> 23 <?php the_ chat(); ?>23 <?php the_post_format_chat(); ?> 24 24 <?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?> 25 25 </div><!-- .entry-content --> -
trunk/wp-content/themes/twentythirteen/content-video.php
r23839 r23899 11 11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 12 12 <div class="entry-media"> 13 <?php the_ video(); ?>13 <?php the_post_format_video(); ?> 14 14 </div><!-- .entry-media --> 15 15 -
trunk/wp-content/themes/twentythirteen/functions.php
r23848 r23899 441 441 */ 442 442 function twentythirteen_get_link_url() { 443 $has_url = get_the_ url();443 $has_url = get_the_post_format_url(); 444 444 445 445 return ( $has_url ) ? $has_url : apply_filters( 'the_permalink', get_permalink() ); -
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 } -
trunk/wp-includes/post-formats.php
r23880 r23899 575 575 * @return array 576 576 */ 577 function get_the_ chat( $id = 0 ) {577 function get_the_post_format_chat( $id = 0 ) { 578 578 $post = empty( $id ) ? clone get_post() : get_post( $id ); 579 579 if ( empty( $post ) ) … … 593 593 * @since 3.6.0 594 594 * 595 * @uses get_the_ chat()595 * @uses get_the_post_format_chat() 596 596 * 597 597 * @print HTML 598 598 */ 599 function the_ chat() {599 function the_post_format_chat() { 600 600 $output = '<dl class="chat">'; 601 $stanzas = get_the_ chat();601 $stanzas = get_the_post_format_chat(); 602 602 603 603 foreach ( $stanzas as $stanza ) { … … 674 674 * @return string A URL, if found. 675 675 */ 676 function get_the_ url( $id = 0 ) {676 function get_the_post_format_url( $id = 0 ) { 677 677 $post = empty( $id ) ? get_post() : get_post( $id ); 678 678 if ( empty( $post ) ) … … 682 682 $meta = get_post_format_meta( $post->ID ); 683 683 if ( ! empty( $meta['url'] ) ) 684 return apply_filters( 'get_the_ url', esc_url_raw( $meta['url'] ), $post );684 return apply_filters( 'get_the_post_format_url', esc_url_raw( $meta['url'] ), $post ); 685 685 } 686 686 687 687 if ( ! empty( $post->post_content ) ) 688 return apply_filters( 'get_the_ url', get_content_url( $post->post_content ), $post );688 return apply_filters( 'get_the_post_format_url', get_content_url( $post->post_content ), $post ); 689 689 } 690 690 … … 695 695 *. 696 696 */ 697 function the_ url() {698 echo esc_url( get_the_ url() );697 function the_post_format_url() { 698 echo esc_url( get_the_post_format_url() ); 699 699 } 700 700 -
trunk/wp-includes/query.php
r23876 r23899 3698 3698 switch ( $format ) { 3699 3699 case 'image': 3700 get_the_ image( 'full', $post );3700 get_the_post_format_image( 'full', $post ); 3701 3701 if ( isset( $post->split_content ) ) 3702 3702 $split_content = $post->split_content; 3703 3703 break; 3704 3704 case 'audio': 3705 get_the_ media( 'audio', $post );3705 get_the_post_format_media( 'audio', $post ); 3706 3706 if ( isset( $post->split_content ) ) 3707 3707 $split_content = $post->split_content; 3708 3708 break; 3709 3709 case 'video': 3710 get_the_ media( 'video', $post );3710 get_the_post_format_media( 'video', $post ); 3711 3711 if ( isset( $post->split_content ) ) 3712 3712 $split_content = $post->split_content;
Note: See TracChangeset
for help on using the changeset viewer.