mirror of
git://develop.git.wordpress.org/
synced 2025-01-18 05:18:42 +01:00
Call get_option('siteurl') outside the loop to save a few dozen get_option calls. Props andissimo.
git-svn-id: https://develop.svn.wordpress.org/trunk@5370 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6332287bb3
commit
9414b0a110
@ -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[] = " <img src='" . get_option('siteurl') . "/wp-includes/images/smilies/$img' alt='$smiley_masked' class='wp-smiley' /> ";
|
||||
$wp_smiliesreplace[] = " <img src='$siteurl/wp-includes/images/smilies/$img' alt='$smiley_masked' class='wp-smiley' /> ";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user