Make WordPress Core


Ignore:
Timestamp:
10/07/2006 07:16:24 PM (18 years ago)
Author:
ryan
Message:

Smilies optimization from Nazgul. fixes #3201 #3216

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/vars.php

    r4283 r4360  
    8888// generates smilies' search & replace arrays
    8989foreach($wpsmiliestrans as $smiley => $img) {
    90     $wp_smiliessearch[] = '/(\s|^)?'.preg_quote($smiley, '/').'(\b|\s)/';
     90    $wp_smiliessearch[] = '/(\s|^|[^<])?'.preg_quote($smiley, '/').'(\b|\s|$)/';
    9191    $smiley_masked = htmlspecialchars( trim($smiley) , ENT_QUOTES);
    9292    $wp_smiliesreplace[] = " <img src='" . get_option('siteurl') . "/wp-includes/images/smilies/$img' alt='$smiley_masked' class='wp-smiley' /> ";
Note: See TracChangeset for help on using the changeset viewer.