Changeset 6242 for trunk/wp-includes/post.php
- Timestamp:
- 10/13/2007 05:33:39 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r6240 r6242 1667 1667 1668 1668 $ids = array(); 1669 foreach ( $post_ids as $id ) {1669 foreach ( (array) $post_ids as $id ) { 1670 1670 if ( false === wp_cache_get($id, 'post_meta') ) 1671 1671 $ids[] = $id; … … 1679 1679 $cache = array(); 1680 1680 if ( $meta_list = $wpdb->get_results("SELECT post_id, meta_key, meta_value FROM $wpdb->postmeta WHERE post_id IN ($id_list) ORDER BY post_id, meta_key", ARRAY_A) ) { 1681 foreach ( $meta_list as $metarow) {1681 foreach ( (array) $meta_list as $metarow) { 1682 1682 $mpid = (int) $metarow['post_id']; 1683 1683 $mkey = $metarow['meta_key']; … … 1695 1695 } 1696 1696 1697 foreach ( $ids as $id ) {1697 foreach ( (array) $ids as $id ) { 1698 1698 if ( ! isset($cache[$id]) ) 1699 1699 $cache[$id] = array();
Note: See TracChangeset
for help on using the changeset viewer.