Make WordPress Core


Ignore:
Timestamp:
06/10/2014 12:43:32 AM (10 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/maint/repair.php

    r27469 r28712  
    3737
    3838    // Sitecategories may not exist if global terms are disabled.
    39     if ( is_multisite() && ! $wpdb->get_var( "SHOW TABLES LIKE '$wpdb->sitecategories'" ) )
     39    $query = $wpdb->prepare( "SHOW TABLES LIKE %s", $wpdb->esc_like( $wpdb->sitecategories ) );
     40    if ( is_multisite() && ! $wpdb->get_var( $query ) ) {
    4041        unset( $tables['sitecategories'] );
     42    }
    4143
    4244    /**
Note: See TracChangeset for help on using the changeset viewer.