Make WordPress Core


Ignore:
Timestamp:
07/16/2013 02:19:03 PM (13 years ago)
Author:
nacin
Message:

Use wp_slash() in places where we improperly used the DB API instead. see #21767.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r24593 r24713  
    647647            return false;
    648648
    649         $metakey = esc_sql( $metakey );
     649        $metakey = wp_slash( $metakey );
    650650
    651651        return add_post_meta( $post_ID, $metakey, $metavalue );
Note: See TracChangeset for help on using the changeset viewer.