mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-12 13:44:21 +01:00
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:
parent
317ff18c49
commit
816618be68
@ -26,7 +26,7 @@
|
||||
</div><!-- .entry-media -->
|
||||
|
||||
<div class="entry-content">
|
||||
<?php the_extra_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentythirteen' ) ); ?>
|
||||
<?php the_remaining_content( __( 'Continue reading <span class="meta-nav">→</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 -->
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<div class="entry-content">
|
||||
<?php the_extra_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentythirteen' ) ); ?>
|
||||
<?php the_remaining_content( __( 'Continue reading <span class="meta-nav">→</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 -->
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<div class="entry-content">
|
||||
<?php the_extra_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentythirteen' ) ); ?>
|
||||
<?php the_remaining_content( __( 'Continue reading <span class="meta-nav">→</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 -->
|
||||
|
||||
|
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user