WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/10/2014 12:43:32 AM (7 years ago)
Author:
wonderboymusic
Message:

Replace all uses of like_escape() with $wpdb->esc_like().

Props miqrogroove.
See #10041.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/install.php

    r28396 r28712  
    7575function display_setup_form( $error = null ) {
    7676    global $wpdb;
    77     $user_table = ( $wpdb->get_var("SHOW TABLES LIKE '$wpdb->users'") != null );
     77
     78    $sql = $wpdb->prepare( "SHOW TABLES LIKE %s", $wpdb->esc_like( $wpdb->users ) );
     79    $user_table = ( $wpdb->get_var( $sql ) != null );
    7880
    7981    // Ensure that Blogs appear in search engines by default
Note: See TracChangeset for help on using the changeset viewer.