Changeset 12393 for trunk/wp-settings.php
- Timestamp:
- 12/14/2009 12:38:05 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-settings.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-settings.php
r12384 r12393 306 306 } 307 307 return $can_clone ? clone( $object ) : $object; 308 } 309 310 /** 311 * Whether the current request is in WordPress admin Panel 312 * 313 * Does not inform on whether the user is an admin! Use capability checks to 314 * tell if the user should be accessing a section or not. 315 * 316 * @since 1.5.1 317 * 318 * @return bool True if inside WordPress administration pages. 319 */ 320 function is_admin() { 321 if ( defined('WP_ADMIN') ) 322 return WP_ADMIN; 323 return false; 308 324 } 309 325
Note:
See TracChangeset
for help on using the changeset viewer.