Changeset 4493

Show
Ignore:
Timestamp:
11/19/06 07:41:12 (2 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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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