From 9e54a128b8b8e4794868999f19bf76a259e0e421 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 2 May 2007 00:32:22 +0000 Subject: [PATCH] Call get_option('siteurl') outside the loop to save a few dozen get_option calls. Props andissimo. git-svn-id: http://svn.automattic.com/wordpress/trunk@5370 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 55d128cdcd..68e73cb13e 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1477,10 +1477,11 @@ function smilies_init() { ); } + $siteurl = get_option('siteurl'); foreach ( (array) $wpsmiliestrans as $smiley => $img ) { $wp_smiliessearch[] = '/(\s|^)'.preg_quote($smiley, '/').'(\s|$)/'; $smiley_masked = htmlspecialchars(trim($smiley), ENT_QUOTES); - $wp_smiliesreplace[] = " $smiley_masked "; + $wp_smiliesreplace[] = " $smiley_masked "; } }