Changeset 15589
- Timestamp:
- 09/07/2010 04:46:08 AM (14 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/default-widgets.php
r15316 r15589 543 543 $number = 15; 544 544 545 $r = new WP_Query(array('showposts' => $number, 'nopaging' => 0, 'post_status' => 'publish', ' caller_get_posts' => 1));545 $r = new WP_Query(array('showposts' => $number, 'nopaging' => 0, 'post_status' => 'publish', 'ignore_sticky_posts' => true)); 546 546 if ($r->have_posts()) : 547 547 ?> -
trunk/wp-includes/post.php
r15582 r15589 1123 1123 $r['post__not_in'] = wp_parse_id_list( $r['exclude'] ); 1124 1124 1125 $r[' caller_get_posts'] = true;1125 $r['ignore_sticky_posts'] = true; 1126 1126 $r['no_found_rows'] = true; 1127 1127 -
trunk/wp-includes/query.php
r15581 r15589 1541 1541 $page = 1; 1542 1542 1543 if ( !isset($q['caller_get_posts']) ) 1544 $q['caller_get_posts'] = false; 1543 if ( isset( $q['caller_get_posts'] ) ) { 1544 _deprecated_argument( 'WP_Query', '3.1', __( '"caller_get_posts" is deprecated. Use "ignore_sticky_posts" instead.' ) ); 1545 if ( !isset( $q['ignore_sticky_posts'] ) ) 1546 $q['ignore_sticky_posts'] = $q['caller_get_posts']; 1547 } 1548 1549 if ( !isset( $q['ignore_sticky_posts'] ) ) 1550 $q['ignore_sticky_posts'] = false; 1545 1551 1546 1552 if ( !isset($q['suppress_filters']) ) … … 2378 2384 // Put sticky posts at the top of the posts array 2379 2385 $sticky_posts = get_option('sticky_posts'); 2380 if ( $this->is_home && $page <= 1 && is_array($sticky_posts) && !empty($sticky_posts) && !$q[' caller_get_posts'] ) {2386 if ( $this->is_home && $page <= 1 && is_array($sticky_posts) && !empty($sticky_posts) && !$q['ignore_sticky_posts'] ) { 2381 2387 $num_posts = count($this->posts); 2382 2388 $sticky_offset = 0;
Note: See TracChangeset
for help on using the changeset viewer.