Ticket #18035: 18035_3.diff
| File 18035_3.diff, 596 bytes (added by , 12 years ago) |
|---|
-
wp-includes/post-template.php
436 436 437 437 // sticky for Sticky Posts 438 438 if ( is_sticky( $post->ID ) ) { 439 if ( is_home() && ! is_paged() && ! get_query_var( 'ignore_sticky_posts') ) {439 if ( is_home() && ! is_paged() && ( ( ! get_query_var( 'ignore_sticky_posts' ) && is_main_query() ) || ( ! is_main_query() ) ) ) { 440 440 $classes[] = 'sticky'; 441 441 } elseif ( is_admin() ) { 442 442 $classes[] = 'status-sticky';