WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/07/2012 07:28:08 PM (8 years ago)
Author:
nacin
Message:

Remove single-argument calls to wpdb:prepare(), which are invalid as nothing is being prepared. see #22262.

File:
1 edited

Legend:

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

    r22308 r22428  
    19201920    update_site_option( 'blog_count', $count );
    19211921
    1922     $count = $wpdb->get_var( $wpdb->prepare("SELECT COUNT(ID) as c FROM $wpdb->users WHERE spam = '0' AND deleted = '0'") );
     1922    $count = $wpdb->get_var( "SELECT COUNT(ID) as c FROM $wpdb->users WHERE spam = '0' AND deleted = '0'" );
    19231923    update_site_option( 'user_count', $count );
    19241924}
Note: See TracChangeset for help on using the changeset viewer.