From 007f792515fbe85bd91b7ccd58fe6d8ad1f340a3 Mon Sep 17 00:00:00 2001 From: "David A. Kennedy" Date: Fri, 9 Jun 2017 16:10:50 -0400 Subject: [PATCH 1/3] Fix build errors related to #1066 --- inc/template-tags.php | 9 ++++++++- template-parts/content-page.php | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/inc/template-tags.php b/inc/template-tags.php index 4c5c6cf1..e87dcef2 100644 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -85,7 +85,14 @@ 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( + __( '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..933ff4f9 100644 --- a/template-parts/content-page.php +++ b/template-parts/content-page.php @@ -31,7 +31,14 @@ 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( + __( 'Edit %s', '_s' ), + array( + 'span' => array( + 'class' => array() + ) + ) + ), get_the_title() ), '', From b408191a9cdb9b689fea8af8ca2eccf409d945ff Mon Sep 17 00:00:00 2001 From: "David A. Kennedy" Date: Fri, 9 Jun 2017 16:19:21 -0400 Subject: [PATCH 2/3] Tweak #1066 to fix build errors --- inc/template-tags.php | 4 ++-- template-parts/content-page.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/inc/template-tags.php b/inc/template-tags.php index e87dcef2..e7811b23 100644 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -89,8 +89,8 @@ function _s_entry_footer() { __( 'Edit %s', '_s' ), array( 'span' => array( - 'class' => array() - ) + 'class' => array(), + ), ) ), get_the_title() diff --git a/template-parts/content-page.php b/template-parts/content-page.php index 933ff4f9..4c7a1337 100644 --- a/template-parts/content-page.php +++ b/template-parts/content-page.php @@ -35,8 +35,8 @@ __( 'Edit %s', '_s' ), array( 'span' => array( - 'class' => array() - ) + 'class' => array(), + ), ) ), get_the_title() From 187caf5d69f36b08d6865b9076b2dd085f26b512 Mon Sep 17 00:00:00 2001 From: "David A. Kennedy" Date: Fri, 9 Jun 2017 16:24:18 -0400 Subject: [PATCH 3/3] Adjust location of placeholder text --- inc/template-tags.php | 2 +- template-parts/content-page.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/template-tags.php b/inc/template-tags.php index e7811b23..efdb9a93 100644 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -84,8 +84,8 @@ function _s_entry_footer() { edit_post_link( sprintf( - /* translators: %s: Name of current post. Only visible to screen readers */ wp_kses( + /* translators: %s: Name of current post. Only visible to screen readers */ __( 'Edit %s', '_s' ), array( 'span' => array( diff --git a/template-parts/content-page.php b/template-parts/content-page.php index 4c7a1337..065a6645 100644 --- a/template-parts/content-page.php +++ b/template-parts/content-page.php @@ -30,8 +30,8 @@ %s', '_s' ), array( 'span' => array(