Changeset 23899 for trunk/wp-includes/post-formats.php
- Timestamp:
- 04/04/2013 08:09:02 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/post-formats.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.