Make WordPress Core


Ignore:
Timestamp:
03/01/2004 06:13:32 AM (22 years ago)
Author:
saxmatt
Message:

Migration to get_settings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions-formatting.php

    r955 r956  
    8282
    8383function convert_chars($content, $flag='obsolete attribute left there for backwards compatibility') { // html/unicode entities output
    84         global $use_htmltrans, $wp_htmltrans, $wp_htmltranswinuni;
     84        global $wp_htmltrans, $wp_htmltranswinuni;
    8585
    8686        // removes metadata tags
     
    8888        $content = preg_replace('/<category>(.+?)<\/category>/','',$content);
    8989       
    90         if ($use_htmltrans) {
     90        if (get_settings('use_htmltrans')) {
    9191                // converts lone & characters into &#38; (a.k.a. &amp;)
    9292                $content = preg_replace('/&[^#](?![a-z]*;)/ie', '"&#38;".substr("\0",1)', $content);
     
    125125*/
    126126function balanceTags($text, $is_comment = 0) {
    127         global $use_balanceTags;
    128127       
    129         if ($use_balanceTags == 0) {
     128        if (get_settings('use_balanceTags') == 0) {
    130129                return $text;
    131130        }
Note: See TracChangeset for help on using the changeset viewer.