mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 17:20:07 +00:00
Migration to get_settings and away from globals.
git-svn-id: https://develop.svn.wordpress.org/trunk@957 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -317,10 +317,9 @@ function convert_gmcode($content) { // depreciated
|
||||
}
|
||||
|
||||
function convert_smilies($text) {
|
||||
global $smilies_directory, $use_smilies;
|
||||
global $wp_smiliessearch, $wp_smiliesreplace;
|
||||
$output = '';
|
||||
if ($use_smilies) {
|
||||
if (get_settings('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
|
||||
|
||||
Reference in New Issue
Block a user