WordPress.org

Make WordPress Core

Changeset 6509


Ignore:
Timestamp:
12/28/2007 01:04:17 AM (13 years ago)
Author:
ryan
Message:

Use is_admin. Props markjaquith. see #5487

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.