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.

git-svn-id: http://core.svn.wordpress.org/trunk@23795 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Lance Willett 2013-03-25 16:36:27 +00:00
parent 0f304375f9
commit a279b11cbb
2 changed files with 2 additions and 4 deletions

View File

@ -11,7 +11,7 @@
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title">
<a href="<?php echo esc_url( twentythirteen_get_first_url() ); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
<a href="<?php echo esc_url( twentythirteen_get_link_url() ); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
</h1>
<div class="entry-meta">

View File

@ -419,7 +419,6 @@ function twentythirteen_entry_date( $echo = true ) {
}
endif;
if ( ! function_exists( 'twentythirteen_get_first_url' ) ) :
/**
* Returns the URL from the post.
*
@ -431,12 +430,11 @@ if ( ! function_exists( 'twentythirteen_get_first_url' ) ) :
* @since Twenty Thirteen 1.0
* @return string URL
*/
function twentythirteen_get_first_url() {
function twentythirteen_get_link_url() {
$has_url = get_the_url();
return ( $has_url ) ? $has_url : apply_filters( 'the_permalink', get_permalink() );
}
endif;
if ( ! function_exists( 'twentythirteen_featured_gallery' ) ) :
/**