Make WordPress Core

Changeset 11230


Ignore:
Timestamp:
05/07/2009 07:05:35 AM (16 years ago)
Author:
westi
Message:

Prevent notice check on invalid sticky settings. See #9393 props nbachiyski.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r11213 r11230  
    23052305        // Put sticky posts at the top of the posts array
    23062306        $sticky_posts = get_option('sticky_posts');
    2307         if ( $this->is_home && $page <= 1 && !empty($sticky_posts) && !$q['caller_get_posts'] ) {
     2307        if ( $this->is_home && $page <= 1 && is_array($sticky_posts) && !empty($sticky_posts) && !$q['caller_get_posts'] ) {
    23082308            $num_posts = count($this->posts);
    23092309            $sticky_offset = 0;
Note: See TracChangeset for help on using the changeset viewer.