WordPress.org

Make WordPress Core

Changeset 17847


Ignore:
Timestamp:
05/09/2011 11:15:38 PM (9 years ago)
Author:
lancewillett
Message:

Twenty Eleven: fix changes in r17846, props nacin - see #17198

File:
1 edited

Legend:

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

    r17846 r17847  
    4444                    $featured_args = array(
    4545                        'post__in' => $sticky,
    46                         'post_status' => 'published',
     46                        'post_status' => 'publish',
    4747                        'posts_per_page' => 10,
    4848                    );
    4949
    5050                    // The Featured Posts query.
    51                     $featured = new WP_Query();
    52                     $featured->query( $featured_args );
     51                    $featured = new WP_Query( $featured_args );
    5352
    5453                    // Proceed only if sticky posts exist.
    55                     if ( 0 < $featured->post_count ) :
     54                    if ( $featured->have_posts() ) :
    5655
    5756                    /**
     
    119118                <?php
    120119                    // Show slider only if we have more than one featured post.
    121                     if ( 1 < $featured->post_count ) :
     120                    if ( $featured->post_count > 1 ) :
    122121                ?>
    123122                <nav class="feature-slider">
Note: See TracChangeset for help on using the changeset viewer.