WordPress.org

Make WordPress Core

Changeset 12961


Ignore:
Timestamp:
02/04/2010 11:05:13 PM (12 years ago)
Author:
markjaquith
Message:

Use addslashes() instead of esc_sql() in add_magic_quotes() to avoid the pretense of DB association. props miqrogroove

File:
1 edited

Legend:

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

    r12958 r12961  
    13911391            $array[$k] = add_magic_quotes( $v );
    13921392        } else {
    1393             $array[$k] = esc_sql( $v );
     1393            $array[$k] = addslashes( $v );
    13941394        }
    13951395    }
Note: See TracChangeset for help on using the changeset viewer.