WordPress.org

Make WordPress Core

Changeset 6510


Ignore:
Timestamp:
12/28/07 01:04:30 (10 years ago)
Author:
ryan
Message:

Use is_admin. Props markjaquith. see #5487

File:
1 edited

Legend:

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