Make WordPress Core


Ignore:
Timestamp:
07/05/2019 05:42:57 AM (3 years ago)
Author:
pento
Message:

Coding Standards: Fix all WordPress.DB.PreparedSQLPlaceholders issues.

See #47632.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-importer.php

    r45583 r45603  
    6565        // Get count of permalinks
    6666        $meta_key = $importer_name . '_' . $bid . '_permalink';
    67         $sql      = $wpdb->prepare( "SELECT COUNT( post_id ) AS cnt FROM $wpdb->postmeta WHERE meta_key = '%s'", $meta_key );
     67        $sql      = $wpdb->prepare( "SELECT COUNT( post_id ) AS cnt FROM $wpdb->postmeta WHERE meta_key = %s", $meta_key );
    6868
    6969        $result = $wpdb->get_results( $sql );
Note: See TracChangeset for help on using the changeset viewer.