Eliminate warnings in convert_smilies. Props tellyworth. fixes #5340
git-svn-id: https://develop.svn.wordpress.org/trunk@6331 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7a432a2ae9
commit
5697266149
|
@ -664,7 +664,7 @@ function wp_rel_nofollow_callback( $matches ) {
|
||||||
function convert_smilies($text) {
|
function convert_smilies($text) {
|
||||||
global $wp_smiliessearch, $wp_smiliesreplace;
|
global $wp_smiliessearch, $wp_smiliesreplace;
|
||||||
$output = '';
|
$output = '';
|
||||||
if (get_option('use_smilies')) {
|
if ( get_option('use_smilies') && !empty($wp_smiliessearch) && !empty($wp_smiliesreplace) ) {
|
||||||
// HTML loop taken from texturize function, could possible be consolidated
|
// 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
|
$textarr = preg_split("/(<.*>)/U", $text, -1, PREG_SPLIT_DELIM_CAPTURE); // capture the tags as well as in between
|
||||||
$stop = count($textarr);// loop stuff
|
$stop = count($textarr);// loop stuff
|
||||||
|
|
Loading…
Reference in New Issue