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:
parent
0f304375f9
commit
a279b11cbb
|
@ -11,7 +11,7 @@
|
||||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
<header class="entry-header">
|
<header class="entry-header">
|
||||||
<h1 class="entry-title">
|
<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>
|
</h1>
|
||||||
|
|
||||||
<div class="entry-meta">
|
<div class="entry-meta">
|
||||||
|
|
|
@ -419,7 +419,6 @@ function twentythirteen_entry_date( $echo = true ) {
|
||||||
}
|
}
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
if ( ! function_exists( 'twentythirteen_get_first_url' ) ) :
|
|
||||||
/**
|
/**
|
||||||
* Returns the URL from the post.
|
* Returns the URL from the post.
|
||||||
*
|
*
|
||||||
|
@ -431,12 +430,11 @@ if ( ! function_exists( 'twentythirteen_get_first_url' ) ) :
|
||||||
* @since Twenty Thirteen 1.0
|
* @since Twenty Thirteen 1.0
|
||||||
* @return string URL
|
* @return string URL
|
||||||
*/
|
*/
|
||||||
function twentythirteen_get_first_url() {
|
function twentythirteen_get_link_url() {
|
||||||
$has_url = get_the_url();
|
$has_url = get_the_url();
|
||||||
|
|
||||||
return ( $has_url ) ? $has_url : apply_filters( 'the_permalink', get_permalink() );
|
return ( $has_url ) ? $has_url : apply_filters( 'the_permalink', get_permalink() );
|
||||||
}
|
}
|
||||||
endif;
|
|
||||||
|
|
||||||
if ( ! function_exists( 'twentythirteen_featured_gallery' ) ) :
|
if ( ! function_exists( 'twentythirteen_featured_gallery' ) ) :
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue