Make WordPress Core


Ignore:
Timestamp:
09/27/2009 05:33:56 AM (17 years ago)
Author:
markjaquith
Message:

esc_sql() for wp-includes

File:
1 edited

Legend:

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

    r11935 r11978  
    11111111        }
    11121112
    1113         return $wpdb->escape($gpc);
     1113        return esc_sql($gpc);
    11141114}
    11151115
     
    12811281        $text = stripslashes($text);
    12821282        $text = preg_replace_callback('|<a (.+?)>|i', 'wp_rel_nofollow_callback', $text);
    1283         $text = $wpdb->escape($text);
     1283        $text = esc_sql($text);
    12841284        return $text;
    12851285}
Note: See TracChangeset for help on using the changeset viewer.