Changeset 2452
- Timestamp:
- 06/30/2010 05:19:16 AM (16 years ago)
- Location:
- trunk/bb-includes
- Files:
-
- 2 edited
-
functions.bb-meta.php (modified) (1 diff)
-
functions.bb-posts.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bb-includes/functions.bb-meta.php
r2451 r2452 298 298 break; 299 299 case 'version': 300 return '1.1-alpha-245 1'; // Don't filter300 return '1.1-alpha-2452'; // Don't filter 301 301 break; 302 302 case 'bb_db_version' : -
trunk/bb-includes/functions.bb-posts.php
r2419 r2452 204 204 wp_cache_add( $_query_post->post_id, $_query_post, 'bb_post' ); 205 205 } 206 } else { 207 $_query_posts = array(); 206 208 } 207 209 } else { … … 209 211 } 210 212 211 return array_merge( $_cached_posts, $_query_posts ); 213 $the_posts = array_merge( $_cached_posts, $_query_posts ); 214 215 usort( $the_posts, '_bb_cache_posts_sort' ); 216 if ( isset( $_query ) && strpos( $_query, 'DESC' ) !== false ) 217 $the_posts = array_reverse( $the_posts ); 218 219 return $the_posts; 220 } 221 222 function _bb_cache_posts_sort( $a, $b ) { 223 return (int) $a->post_id - (int) $b->post_id; 212 224 } 213 225
Note: See TracChangeset
for help on using the changeset viewer.