Changeset 12393 for trunk/wp-includes/query.php
- Timestamp:
- 12/14/2009 12:38:05 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r12372 r12393 86 86 * Query type checks. 87 87 */ 88 89 /**90 * Whether the current request is in WordPress admin Panel91 *92 * Does not inform on whether the user is an admin! Use capability checks to93 * tell if the user should be accessing a section or not.94 *95 * @since 1.5.196 *97 * @return bool True if inside WordPress administration pages.98 */99 function is_admin () {100 if ( defined('WP_ADMIN') )101 return WP_ADMIN;102 return false;103 }104 88 105 89 /**
Note: See TracChangeset
for help on using the changeset viewer.