Changeset 6412
- Timestamp:
- 12/19/2007 05:56:16 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin.php
r6113 r6412 1 1 <?php 2 define('WP_ADMIN', TRUE); 3 2 4 if ( defined('ABSPATH') ) 3 5 require_once( ABSPATH . 'wp-config.php'); -
trunk/wp-includes/query.php
r6397 r6412 33 33 34 34 function is_admin () { 35 global $wp_query;36 37 return ($wp_query->is_admin || (stripos($_SERVER['REQUEST_URI'], 'wp-admin/') !== false));35 if ( defined('WP_ADMIN') ) 36 return WP_ADMIN; 37 return false; 38 38 } 39 39
Note: See TracChangeset
for help on using the changeset viewer.