From ec1fe1532bca62d5418d582e9f7c29c10d26c216 Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Fri, 19 May 2017 15:18:06 +0000 Subject: [PATCH] Twenty Seventeen: Remove uneccessary return statement Props truongwp. Fixes #40516. git-svn-id: https://develop.svn.wordpress.org/trunk@40795 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentyseventeen/inc/template-tags.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/wp-content/themes/twentyseventeen/inc/template-tags.php b/src/wp-content/themes/twentyseventeen/inc/template-tags.php index 782a81fe3b..2b461109be 100644 --- a/src/wp-content/themes/twentyseventeen/inc/template-tags.php +++ b/src/wp-content/themes/twentyseventeen/inc/template-tags.php @@ -110,8 +110,7 @@ if ( ! function_exists( 'twentyseventeen_edit_link' ) ) : * layout with multiple posts/pages shown gets confusing. */ function twentyseventeen_edit_link() { - - $link = edit_post_link( + edit_post_link( sprintf( /* translators: %s: Name of current post */ __( 'Edit "%s"', 'twentyseventeen' ), @@ -120,8 +119,6 @@ function twentyseventeen_edit_link() { '', '' ); - - return $link; } endif;