Changeset 4493 for branches/2.0/wp-includes/classes.php
- Timestamp:
- 11/19/2006 07:41:12 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/wp-includes/classes.php
r4328 r4493 599 599 600 600 if ( $this->is_attachment ) { 601 $where .= ' AND (post_status = "attachment")';601 $where .= " AND (post_status = 'attachment')"; 602 602 } elseif ($this->is_page) { 603 $where .= ' AND (post_status = "static")';603 $where .= " AND (post_status = 'static')"; 604 604 } elseif ($this->is_single) { 605 $where .= ' AND (post_status != "static")';605 $where .= " AND (post_status != 'static')"; 606 606 } else { 607 $where .= ' AND (post_status = "publish"';607 $where .= " AND (post_status = 'publish'"; 608 608 609 609 if (isset($user_ID) && ('' != intval($user_ID))) … … 614 614 615 615 if (! $this->is_attachment ) 616 $where .= ' AND post_status != "attachment"';616 $where .= " AND post_status != 'attachment'"; 617 617 618 618 // Apply filters on where and join prior to paging so that any
Note: See TracChangeset
for help on using the changeset viewer.