Make WordPress Core


Ignore:
Timestamp:
11/12/2007 07:33:06 PM (18 years ago)
Author:
ryan
Message:

Eliminate warnings in convert_smilies. Props tellyworth. fixes #5340

File:
1 edited

Legend:

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

    r6314 r6331  
    665665    global $wp_smiliessearch, $wp_smiliesreplace;
    666666    $output = '';
    667     if (get_option('use_smilies')) {
     667    if ( get_option('use_smilies') && !empty($wp_smiliessearch) && !empty($wp_smiliesreplace) ) {
    668668        // HTML loop taken from texturize function, could possible be consolidated
    669669        $textarr = preg_split("/(<.*>)/U", $text, -1, PREG_SPLIT_DELIM_CAPTURE); // capture the tags as well as in between
Note: See TracChangeset for help on using the changeset viewer.