From 1e9b0c686e91599580c1ebd9da5ecb967dee2d0a Mon Sep 17 00:00:00 2001 From: "David A. Kennedy" Date: Fri, 9 Jun 2017 16:10:50 -0400 Subject: [PATCH] Fix build errors related to #1066 Tweak #1066 to fix build errors Adjust location of placeholder text --- inc/template-tags.php | 11 +++++++++-- template-parts/content-page.php | 11 +++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/inc/template-tags.php b/inc/template-tags.php index 4c5c6cf1..efdb9a93 100644 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -84,8 +84,15 @@ function _s_entry_footer() { edit_post_link( sprintf( - /* translators: %s: Name of current post. Only visible to screen readers */ - wp_kses( __( 'Edit %s', '_s' ), array( 'span' => array( 'class' => array() ) ) ), + wp_kses( + /* translators: %s: Name of current post. Only visible to screen readers */ + __( 'Edit %s', '_s' ), + array( + 'span' => array( + 'class' => array(), + ), + ) + ), get_the_title() ), '', diff --git a/template-parts/content-page.php b/template-parts/content-page.php index 42614812..065a6645 100644 --- a/template-parts/content-page.php +++ b/template-parts/content-page.php @@ -30,8 +30,15 @@ %s', '_s' ), array( 'span' => array( 'class' => array() ) ) ), + wp_kses( + /* translators: %s: Name of current post. Only visible to screen readers */ + __( 'Edit %s', '_s' ), + array( + 'span' => array( + 'class' => array(), + ), + ) + ), get_the_title() ), '',