Changeset 6509

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

Use is_admin. Props markjaquith. see #5487

Files:

Legend:

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

    r6467 r6509  
    645645            $this->is_preview = true; 
    646646 
    647         if ( strpos($_SERVER['PHP_SELF'], 'wp-admin/') !== false
     647        if ( is_admin()
    648648            $this->is_admin = true; 
    649649