diff --git a/src/wp-content/themes/twentyseventeen/functions.php b/src/wp-content/themes/twentyseventeen/functions.php index de8dd372ea..4090cbfad8 100644 --- a/src/wp-content/themes/twentyseventeen/functions.php +++ b/src/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 */