WordPress.org

Make WordPress Core

Ticket #11605: 11605.patch

File 11605.patch, 374 bytes (added by hakre, 6 years ago)

same API but easier to read and to improve in the future.

  • wp-includes/formatting.php

     
    22192219 * @return string The cleaned $sql 
    22202220 */ 
    22212221function esc_sql( $sql ) { 
    2222         global $wpdb; 
    2223         return $wpdb->escape( $sql ); 
     2222        return addslashes($sql); 
    22242223} 
    22252224 
    22262225