Make WordPress Core

Changeset 18216


Ignore:
Timestamp:
06/09/2011 04:39:40 PM (12 years ago)
Author:
iandstewart
Message:

Twenty Eleven: make sure we're checking for sticky posts at the correct time in showcase.php

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyeleven/showcase.php

    r18181 r18216  
    4242                     */
    4343                    $sticky = get_option( 'sticky_posts' );
     44
     45                    // Proceed only if sticky posts exist.
     46                    if ( ! empty( $sticky ) ) :
     47
    4448                    $featured_args = array(
    4549                        'post__in' => $sticky,
     
    5054                    // The Featured Posts query.
    5155                    $featured = new WP_Query( $featured_args );
    52 
    53                     // Proceed only if sticky posts exist.
    54                     if ( $featured->have_posts() ) :
    5556
    5657                    /**
Note: See TracChangeset for help on using the changeset viewer.