Make WordPress Core


Ignore:
Timestamp:
04/04/2013 08:09:02 AM (13 years ago)
Author:
markjaquith
Message:

Standardize the post format theme API functions with the_post_format_THING() and get_the_post_format_THING().

fixes #23927

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post-formats.php

    r23880 r23899  
    575575 * @return array
    576576 */
    577 function get_the_chat( $id = 0 ) {
     577function get_the_post_format_chat( $id = 0 ) {
    578578    $post = empty( $id ) ? clone get_post() : get_post( $id );
    579579    if ( empty( $post ) )
     
    593593 * @since 3.6.0
    594594 *
    595  * @uses get_the_chat()
     595 * @uses get_the_post_format_chat()
    596596 *
    597597 * @print HTML
    598598 */
    599 function the_chat() {
     599function the_post_format_chat() {
    600600    $output  = '<dl class="chat">';
    601     $stanzas = get_the_chat();
     601    $stanzas = get_the_post_format_chat();
    602602
    603603    foreach ( $stanzas as $stanza ) {
     
    674674 * @return string A URL, if found.
    675675 */
    676 function get_the_url( $id = 0 ) {
     676function get_the_post_format_url( $id = 0 ) {
    677677    $post = empty( $id ) ? get_post() : get_post( $id );
    678678    if ( empty( $post ) )
     
    682682        $meta = get_post_format_meta( $post->ID );
    683683        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 );
    685685    }
    686686
    687687    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 );
    689689}
    690690
     
    695695 *.
    696696 */
    697 function the_url() {
    698     echo esc_url( get_the_url() );
     697function the_post_format_url() {
     698    echo esc_url( get_the_post_format_url() );
    699699}
    700700
Note: See TracChangeset for help on using the changeset viewer.