From 42f804e4cb05411ff3edff69c731e6400f303139 Mon Sep 17 00:00:00 2001 From: "David A. Kennedy" Date: Fri, 28 Oct 2016 23:16:34 +0000 Subject: [PATCH] Twenty Seventeen: Don't modify excerpt link in admin * Since this is a filter the original value is returned if `is_admin()` is true. * Removes portion of the doc block since function is not pluggable. Props mangeshp. Fixes #38510. Built from https://develop.svn.wordpress.org/trunk@39000 git-svn-id: http://core.svn.wordpress.org/trunk@38942 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyseventeen/functions.php | 8 +++++--- wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/wp-content/themes/twentyseventeen/functions.php b/wp-content/themes/twentyseventeen/functions.php index de8dd372ea..4090cbfad8 100644 --- a/wp-content/themes/twentyseventeen/functions.php +++ b/wp-content/themes/twentyseventeen/functions.php @@ -284,13 +284,15 @@ add_action( 'widgets_init', 'twentyseventeen_widgets_init' ); * Replaces "[...]" (appended to automatically generated excerpts) with ... and * a 'Continue reading' link. * - * Create your own twentysixteen_excerpt_more() function to override in a child theme. - * * @since Twenty Seventeen 1.0 * * @return string 'Continue reading' link prepended with an ellipsis. */ -function twentyseventeen_excerpt_more() { +function twentyseventeen_excerpt_more( $link ) { + if ( is_admin() ) { + return $link; + } + $link = sprintf( '', esc_url( get_permalink( get_the_ID() ) ), /* translators: %s: Name of current post */ diff --git a/wp-includes/version.php b/wp-includes/version.php index a4547b4cb3..b378253a89 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-beta1-38999'; +$wp_version = '4.7-beta1-39000'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.