Changeset 22428
- Timestamp:
- 11/07/2012 07:28:08 PM (12 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/ms-functions.php
r22308 r22428 1920 1920 update_site_option( 'blog_count', $count ); 1921 1921 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'" ); 1923 1923 update_site_option( 'user_count', $count ); 1924 1924 } -
trunk/wp-includes/query.php
r22258 r22428 2407 2407 $in_search_post_types = get_post_types( array('exclude_from_search' => false) ); 2408 2408 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 ) . "')"; 2410 2410 } elseif ( !empty( $post_type ) && is_array( $post_type ) ) { 2411 2411 $where .= " AND $wpdb->posts.post_type IN ('" . join("', '", $post_type) . "')";
Note: See TracChangeset
for help on using the changeset viewer.