diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php
index 9ea2b9f8fa..0f27838a09 100644
a
|
b
|
function translate_smiley( $matches ) { |
3477 | 3477 | function convert_smilies( $text ) { |
3478 | 3478 | global $wp_smiliessearch; |
3479 | 3479 | $output = ''; |
3480 | | if ( get_option( 'use_smilies' ) && ! empty( $wp_smiliessearch ) ) { |
| 3480 | if ( get_option( 'use_smilies' ) && ! empty( $wp_smiliessearch ) && ! empty( $text ) ) { |
3481 | 3481 | // HTML loop taken from texturize function, could possible be consolidated. |
3482 | 3482 | $textarr = preg_split( '/(<.*>)/U', $text, -1, PREG_SPLIT_DELIM_CAPTURE ); // Capture the tags as well as in between. |
3483 | 3483 | $stop = count( $textarr ); // Loop stuff. |