Twenty Eleven: make sure we're checking for sticky posts at the correct time in showcase.php
git-svn-id: http://svn.automattic.com/wordpress/trunk@18216 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
64502ddea5
commit
ff1a97a7fc
|
@ -41,6 +41,10 @@ get_header(); ?>
|
|||
* We limit the featured posts at ten.
|
||||
*/
|
||||
$sticky = get_option( 'sticky_posts' );
|
||||
|
||||
// Proceed only if sticky posts exist.
|
||||
if ( ! empty( $sticky ) ) :
|
||||
|
||||
$featured_args = array(
|
||||
'post__in' => $sticky,
|
||||
'post_status' => 'publish',
|
||||
|
@ -50,9 +54,6 @@ get_header(); ?>
|
|||
// The Featured Posts query.
|
||||
$featured = new WP_Query( $featured_args );
|
||||
|
||||
// Proceed only if sticky posts exist.
|
||||
if ( $featured->have_posts() ) :
|
||||
|
||||
/**
|
||||
* We will need to count featured posts starting from zero
|
||||
* to create the slider navigation.
|
||||
|
|
Loading…
Reference in New Issue