Changeset 15746 for trunk/wp-includes/vars.php
- Timestamp:
- 10/07/2010 07:34:18 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/vars.php
r13132 r15746 16 16 if ( is_admin() ) { 17 17 // wp-admin pages are checked more carefully 18 preg_match('#/wp-admin/?(.*?)$#i', $PHP_SELF, $self_matches); 18 if ( is_network_admin() ) 19 preg_match('#/wp-admin/network/?(.*?)$#i', $PHP_SELF, $self_matches); 20 elseif ( is_user_admin() ) 21 preg_match('#/wp-admin/user/?(.*?)$#i', $PHP_SELF, $self_matches); 22 else 23 preg_match('#/wp-admin/?(.*?)$#i', $PHP_SELF, $self_matches); 19 24 $pagenow = $self_matches[1]; 20 25 $pagenow = trim($pagenow, '/');
Note: See TracChangeset
for help on using the changeset viewer.