WordPress.org

Make WordPress Core

Ticket #22573: 22573.diff

File 22573.diff, 541 bytes (added by scribu, 17 months ago)
  • wp-includes/formatting.php

    diff --git wp-includes/formatting.php wp-includes/formatting.php
    index 05d7227..c6ff4fd 100644
    function _deep_replace( $search, $subject ) { 
    25502550 * This is just a handy shortcut for $wpdb->escape(), for completeness' sake 
    25512551 * 
    25522552 * @since 2.8.0 
    2553  * @param string $sql Unescaped SQL data 
    2554  * @return string The cleaned $sql 
     2553 * @param string|array $sql Unescaped SQL data 
     2554 * @return string|array The cleaned $sql 
    25552555 */ 
    25562556function esc_sql( $sql ) { 
    25572557        global $wpdb;