Changeset 49193 for trunk/src/wp-includes/post.php
- Timestamp:
- 10/18/2020 05:25:10 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r49173 r49193 2956 2956 2957 2957 if ( ! empty( $wheres ) ) { 2958 $where = ' AND (' . join( ' OR ', $wheres ) . ') ';2958 $where = ' AND (' . implode( ' OR ', $wheres ) . ') '; 2959 2959 } 2960 2960 … … 7467 7467 $non_cached_ids = _get_non_cached_ids( $ids, 'posts' ); 7468 7468 if ( ! empty( $non_cached_ids ) ) { 7469 $fresh_posts = $wpdb->get_results( sprintf( "SELECT $wpdb->posts.* FROM $wpdb->posts WHERE ID IN (%s)", join( ',', $non_cached_ids ) ) );7469 $fresh_posts = $wpdb->get_results( sprintf( "SELECT $wpdb->posts.* FROM $wpdb->posts WHERE ID IN (%s)", implode( ',', $non_cached_ids ) ) ); 7470 7470 7471 7471 update_post_caches( $fresh_posts, 'any', $update_term_cache, $update_meta_cache );
Note: See TracChangeset
for help on using the changeset viewer.