Make WordPress Core

Changeset 3293


Ignore:
Timestamp:
12/12/2005 01:33:46 AM (18 years ago)
Author:
ryan
Message:

Fix attachment queries. fixes #2041

File:
1 edited

Legend:

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

    r3290 r3293  
    632632        if ($this->is_single) {
    633633            $status = get_post_status($this->posts[0]);
    634             if ('publish' != $status) {
     634            if ( ('publish' != $status) && ('static' != $status) ) {
    635635                if ( ! (isset($user_ID) && ('' != intval($user_ID))) ) {
    636636                    // User must be logged in to view unpublished posts.
Note: See TracChangeset for help on using the changeset viewer.