WordPress.org

Make WordPress Core

Changeset 3286


Ignore:
Timestamp:
12/10/2005 11:29:39 PM (16 years ago)
Author:
ryan
Message:

Fix is_admin() for situations where the query is not run. fixes #1741

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r3254 r3286  
    15201520    global $wp_query;
    15211521
    1522     return $wp_query->is_admin;
     1522    return ( $wp_query->is_admin || strstr($_SERVER['REQUEST_URI'], 'wp-admin/') );
    15231523}
    15241524
Note: See TracChangeset for help on using the changeset viewer.