IM getting this error over and over again in my error_log:
[29-Oct-2007 16:16:17] PHP Warning: preg_replace() [function.preg-replace]: Empty regular expression in /home/bloggpro/public_html/wp-includes/formatting.php on line 654
This is line 644 and forward
function convert_smilies($text) {
global $wp_smiliessearch, $wp_smiliesreplace;
$output = '';
if (get_option('use_smilies')) {
// HTML loop taken from texturize function, could possible be consolidated
$textarr = preg_split("/(<.*>)/U", $text, -1, PREG_SPLIT_DELIM_CAPTURE); // capture the tags as well as in between
$stop = count($textarr);// loop stuff
for ($i = 0; $i < $stop; $i++) {
$content = $textarr[$i];
if ((strlen($content) > 0) && ('<' != $content{0})) { // If it's not a tag
$content = preg_replace($wp_smiliessearch, $wp_smiliesreplace, $content);
}
$output .= $content;
}
} else {
// return default text.
$output = $text;
}
return $output;
}
I havent ever been in that file, so no changes have been made to it, anyone got an idea?