From f2d249563011641b7c9dfc0840c8472e62f53536 Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Mon, 22 Dec 2014 09:16:13 +0100 Subject: [PATCH] Switch in and out of PHP to render fallback title. The upload checks for the .org Theme Directory are rightfully strict about the contents of the title tag. Switching in and out of PHP should make `_s`-based themes pass those tests again. See https://github.com/Automattic/_s/pull/644#discussion-diff-22153263 See #644. --- inc/extras.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inc/extras.php b/inc/extras.php index 99b49d8a..06151bae 100644 --- a/inc/extras.php +++ b/inc/extras.php @@ -77,7 +77,9 @@ if ( ! function_exists( '_wp_render_title_tag' ) ) : * @todo Remove this function when WordPress 4.3 is released. */ function _s_render_title() { - echo '' . wp_title( '|', false, 'right' ) . "\n"; + ?> + <?php wp_title( '|', true, 'right' ); ?> +