Changeset 6510

Show
Ignore:
Timestamp:
12/28/07 01:04:30 (5 months ago)
Author:
ryan
Message:

Use is_admin. Props markjaquith. see #5487

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.3/wp-includes/query.php

    r6442 r6510  
    643643            $this->is_preview = true; 
    644644 
    645         if ( strpos($_SERVER['PHP_SELF'], 'wp-admin/') !== false
     645        if ( is_admin()
    646646            $this->is_admin = true; 
    647647