WordPress.org

Make WordPress Core

Changeset 4493


Ignore:
Timestamp:
11/19/2006 07:41:12 AM (12 years ago)
Author:
ryan
Message:

Quote strings in SQL with single quotes instead of double quotes to be more correct and consistent. Props WillemGrooters. fixes #3367

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-includes/classes.php

    r4328 r4493  
    599599
    600600        if ( $this->is_attachment ) {
    601             $where .= ' AND (post_status = "attachment")';
     601            $where .= " AND (post_status = 'attachment')";
    602602        } elseif ($this->is_page) {
    603             $where .= ' AND (post_status = "static")';
     603            $where .= " AND (post_status = 'static')";
    604604        } elseif ($this->is_single) {
    605             $where .= ' AND (post_status != "static")';
     605            $where .= " AND (post_status != 'static')";
    606606        } else {
    607             $where .= ' AND (post_status = "publish"';
     607            $where .= " AND (post_status = 'publish'";
    608608
    609609            if (isset($user_ID) && ('' != intval($user_ID)))
     
    614614
    615615        if (! $this->is_attachment )
    616             $where .= ' AND post_status != "attachment"';
     616            $where .= " AND post_status != 'attachment'";
    617617
    618618        // Apply filters on where and join prior to paging so that any
Note: See TracChangeset for help on using the changeset viewer.