WordPress.org

Make WordPress Core

Changeset 23795


Ignore:
Timestamp:
03/25/2013 04:36:27 PM (8 years ago)
Author:
lancewillett
Message:

Twenty Thirteen: change link URL function name to twentythirteen_get_link_url(), props obenland. Also remove function_exists() check since this function should not be pluggable, by design. Closes #23619.

Location:
trunk/wp-content/themes/twentythirteen
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentythirteen/content-link.php

    r23755 r23795  
    1212    <header class="entry-header">
    1313        <h1 class="entry-title">
    14             <a href="<?php echo esc_url( twentythirteen_get_first_url() ); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
     14            <a href="<?php echo esc_url( twentythirteen_get_link_url() ); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
    1515        </h1>
    1616
  • trunk/wp-content/themes/twentythirteen/functions.php

    r23787 r23795  
    420420endif;
    421421
    422 if ( ! function_exists( 'twentythirteen_get_first_url' ) ) :
    423422/**
    424423 * Returns the URL from the post.
     
    432431 * @return string URL
    433432 */
    434 function twentythirteen_get_first_url() {
     433function twentythirteen_get_link_url() {
    435434    $has_url = get_the_url();
    436435
    437436    return ( $has_url ) ? $has_url : apply_filters( 'the_permalink', get_permalink() );
    438437}
    439 endif;
    440438
    441439if ( ! function_exists( 'twentythirteen_featured_gallery' ) ) :
Note: See TracChangeset for help on using the changeset viewer.