Migration to get_settings and away from globals.

git-svn-id: http://svn.automattic.com/wordpress/trunk@957 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt
2004-03-01 19:55:45 +00:00
parent b6aa1f6807
commit a0867db6ed
27 changed files with 51 additions and 72 deletions

View File

@@ -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