WordPress.org

Make WordPress Core

Changeset 22428


Ignore:
Timestamp:
11/07/12 19:28:08 (18 months ago)
Author:
nacin
Message:

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

Location:
trunk/wp-includes
Files:
2 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} 
  • trunk/wp-includes/query.php

    r22258 r22428  
    24072407            $in_search_post_types = get_post_types( array('exclude_from_search' => false) ); 
    24082408            if ( ! empty( $in_search_post_types ) ) 
    2409                 $where .= $wpdb->prepare(" AND $wpdb->posts.post_type IN ('" . join("', '", $in_search_post_types ) . "')"); 
     2409                $where .= " AND $wpdb->posts.post_type IN ('" . join("', '", $in_search_post_types ) . "')"; 
    24102410        } elseif ( !empty( $post_type ) && is_array( $post_type ) ) { 
    24112411            $where .= " AND $wpdb->posts.post_type IN ('" . join("', '", $post_type) . "')"; 
Note: See TracChangeset for help on using the changeset viewer.