Changeset 6442
- Timestamp:
- 12/21/2007 01:28:48 AM (17 years ago)
- Location:
- branches/2.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.3/wp-admin/admin.php
r6113 r6442 1 1 <?php 2 define('WP_ADMIN', TRUE); 3 2 4 if ( defined('ABSPATH') ) 3 5 require_once( ABSPATH . 'wp-config.php'); -
branches/2.3/wp-includes/query.php
r6253 r6442 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.