From f0c4dc3058ecc517d26355242fd5b6ebec3004db Mon Sep 17 00:00:00 2001 From: westi Date: Thu, 7 May 2009 07:05:35 +0000 Subject: [PATCH] Prevent notice check on invalid sticky settings. See #9393 props nbachiyski. git-svn-id: http://svn.automattic.com/wordpress/trunk@11230 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/query.php b/wp-includes/query.php index 68e931315..0f852744d 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -2304,7 +2304,7 @@ class WP_Query { // Put sticky posts at the top of the posts array $sticky_posts = get_option('sticky_posts'); - if ( $this->is_home && $page <= 1 && !empty($sticky_posts) && !$q['caller_get_posts'] ) { + if ( $this->is_home && $page <= 1 && is_array($sticky_posts) && !empty($sticky_posts) && !$q['caller_get_posts'] ) { $num_posts = count($this->posts); $sticky_offset = 0; // Loop over posts and relocate stickies to the front.