Twenty Ten and Eleven: don't display modified excerpt link in wp-admin.
Props kraftbj, fixes #30026. Built from https://develop.svn.wordpress.org/trunk@30145 git-svn-id: http://core.svn.wordpress.org/trunk@30145 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c07582cb64
commit
609335eef1
|
@ -390,8 +390,11 @@ endif; // twentyeleven_continue_reading_link
|
||||||
* @return The filtered Read More text.
|
* @return The filtered Read More text.
|
||||||
*/
|
*/
|
||||||
function twentyeleven_auto_excerpt_more( $more ) {
|
function twentyeleven_auto_excerpt_more( $more ) {
|
||||||
|
if ( ! is_admin() ) {
|
||||||
return ' …' . twentyeleven_continue_reading_link();
|
return ' …' . twentyeleven_continue_reading_link();
|
||||||
}
|
}
|
||||||
|
return $more;
|
||||||
|
}
|
||||||
add_filter( 'excerpt_more', 'twentyeleven_auto_excerpt_more' );
|
add_filter( 'excerpt_more', 'twentyeleven_auto_excerpt_more' );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -406,7 +409,7 @@ add_filter( 'excerpt_more', 'twentyeleven_auto_excerpt_more' );
|
||||||
* @return string The filtered "Continue Reading" link.
|
* @return string The filtered "Continue Reading" link.
|
||||||
*/
|
*/
|
||||||
function twentyeleven_custom_excerpt_more( $output ) {
|
function twentyeleven_custom_excerpt_more( $output ) {
|
||||||
if ( has_excerpt() && ! is_attachment() ) {
|
if ( has_excerpt() && ! is_attachment() && ! is_admin() ) {
|
||||||
$output .= twentyeleven_continue_reading_link();
|
$output .= twentyeleven_continue_reading_link();
|
||||||
}
|
}
|
||||||
return $output;
|
return $output;
|
||||||
|
|
|
@ -295,8 +295,11 @@ endif;
|
||||||
* @return string An ellipsis.
|
* @return string An ellipsis.
|
||||||
*/
|
*/
|
||||||
function twentyten_auto_excerpt_more( $more ) {
|
function twentyten_auto_excerpt_more( $more ) {
|
||||||
|
if ( ! is_admin() ) {
|
||||||
return ' …' . twentyten_continue_reading_link();
|
return ' …' . twentyten_continue_reading_link();
|
||||||
}
|
}
|
||||||
|
return $more;
|
||||||
|
}
|
||||||
add_filter( 'excerpt_more', 'twentyten_auto_excerpt_more' );
|
add_filter( 'excerpt_more', 'twentyten_auto_excerpt_more' );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -311,7 +314,7 @@ add_filter( 'excerpt_more', 'twentyten_auto_excerpt_more' );
|
||||||
* @return string Excerpt with a pretty "Continue Reading" link.
|
* @return string Excerpt with a pretty "Continue Reading" link.
|
||||||
*/
|
*/
|
||||||
function twentyten_custom_excerpt_more( $output ) {
|
function twentyten_custom_excerpt_more( $output ) {
|
||||||
if ( has_excerpt() && ! is_attachment() ) {
|
if ( has_excerpt() && ! is_attachment() && ! is_admin() ) {
|
||||||
$output .= twentyten_continue_reading_link();
|
$output .= twentyten_continue_reading_link();
|
||||||
}
|
}
|
||||||
return $output;
|
return $output;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.1-alpha-30144';
|
$wp_version = '4.1-alpha-30145';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue