Rename the_extra_content() to the_remaining_content().

fixes #23877.

git-svn-id: http://core.svn.wordpress.org/trunk@23836 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Mark Jaquith 2013-03-28 05:59:18 +00:00
parent 317ff18c49
commit 816618be68
4 changed files with 6 additions and 6 deletions

View File

@ -26,7 +26,7 @@
</div><!-- .entry-media -->
<div class="entry-content">
<?php the_extra_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentythirteen' ) ); ?>
<?php the_remaining_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentythirteen' ) ); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?>
</div><!-- .entry-content -->

View File

@ -24,7 +24,7 @@
</header><!-- .entry-header -->
<div class="entry-content">
<?php the_extra_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentythirteen' ) ); ?>
<?php the_remaining_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentythirteen' ) ); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?>
</div><!-- .entry-content -->

View File

@ -24,7 +24,7 @@
</header><!-- .entry-header -->
<div class="entry-content">
<?php the_extra_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentythirteen' ) ); ?>
<?php the_remaining_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentythirteen' ) ); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?>
</div><!-- .entry-content -->

View File

@ -687,7 +687,7 @@ function the_url() {
* @param bool $strip_teaser Optional. Strip teaser content before the more text. Default is false.
* @return string
*/
function get_the_extra_content( $more_link_text = null, $strip_teaser = false ) {
function get_the_remaining_content( $more_link_text = null, $strip_teaser = false ) {
global $more, $page, $format_pages, $multipage, $preview;
$post = get_post();
@ -752,8 +752,8 @@ function get_the_extra_content( $more_link_text = null, $strip_teaser = false )
* @param string $more_link_text Optional. Content for when there is more text.
* @param bool $strip_teaser Optional. Strip teaser content before the more text. Default is false.
*/
function the_extra_content( $more_link_text = null, $strip_teaser = false ) {
$extra = get_the_extra_content( $more_link_text, $strip_teaser );
function the_remaining_content( $more_link_text = null, $strip_teaser = false ) {
$extra = get_the_remaining_content( $more_link_text, $strip_teaser );
remove_filter( 'the_content', 'post_formats_compat', 7 );
$content = apply_filters( 'the_content', $extra );