From 7671cad5685ae8df50a02f871a1ae28119b8dbf1 Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Tue, 30 Dec 2014 20:02:12 -0800 Subject: [PATCH] Revert custom theme name replace handler. The existing handler should be able to handle it just fine already. See c6886abb20c0de89007a8b324e57834d6b6ed10f. --- plugins/underscoresme-generator/underscoresme-generator.php | 1 - 1 file changed, 1 deletion(-) diff --git a/plugins/underscoresme-generator/underscoresme-generator.php b/plugins/underscoresme-generator/underscoresme-generator.php index 5aed9a7..0d92d49 100644 --- a/plugins/underscoresme-generator/underscoresme-generator.php +++ b/plugins/underscoresme-generator/underscoresme-generator.php @@ -186,7 +186,6 @@ function do_replacements( $contents, $filename ) { $contents = preg_replace( '/(' . preg_quote( $key ) . ':)\s?(.+)/', '\\1 ' . $value, $contents ); } - $contents = str_replace( '_s is based on Underscores', sprintf( '%s is based on Underscores', $this->theme['name'] ), $contents ); $contents = preg_replace( '/\b_s\b/', $this->theme['name'], $contents ); return $contents;