Make WordPress Core

Changeset 5371


Ignore:
Timestamp:
05/02/2007 12:32:38 AM (17 years ago)
Author:
ryan
Message:

Call get_option('siteurl') outside the loop to save a few dozen get_option calls. Props andissimo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/wp-includes/functions.php

    r5363 r5371  
    14621462    }
    14631463
     1464    $siteurl = get_option('siteurl');
    14641465    foreach ( (array) $wpsmiliestrans as $smiley => $img ) {
    14651466        $wp_smiliessearch[] = '/(\s|^)'.preg_quote($smiley, '/').'(\s|$)/';
    14661467        $smiley_masked = htmlspecialchars(trim($smiley), ENT_QUOTES);
    1467         $wp_smiliesreplace[] = " <img src='" . get_option('siteurl') . "/wp-includes/images/smilies/$img' alt='$smiley_masked' class='wp-smiley' /> ";
     1468        $wp_smiliesreplace[] = " <img src='$siteurl/wp-includes/images/smilies/$img' alt='$smiley_masked' class='wp-smiley' /> ";
    14681469    }
    14691470}
Note: See TracChangeset for help on using the changeset viewer.