Changeset 18993 for trunk/wp-includes/vars.php
- Timestamp:
- 10/18/2011 07:37:07 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/vars.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/vars.php
r18982 r18993 17 17 // wp-admin pages are checked more carefully 18 18 if ( is_network_admin() ) 19 preg_match('#/wp-admin/network/?(.*?)$#i', $ PHP_SELF, $self_matches);19 preg_match('#/wp-admin/network/?(.*?)$#i', $_SERVER['PHP_SELF'], $self_matches); 20 20 elseif ( is_user_admin() ) 21 preg_match('#/wp-admin/user/?(.*?)$#i', $ PHP_SELF, $self_matches);21 preg_match('#/wp-admin/user/?(.*?)$#i', $_SERVER['PHP_SELF'], $self_matches); 22 22 else 23 preg_match('#/wp-admin/?(.*?)$#i', $ PHP_SELF, $self_matches);23 preg_match('#/wp-admin/?(.*?)$#i', $_SERVER['PHP_SELF'], $self_matches); 24 24 $pagenow = $self_matches[1]; 25 25 $pagenow = trim($pagenow, '/'); … … 34 34 } 35 35 } else { 36 if ( preg_match('#([^/]+\.php)([?/].*?)?$#i', $ PHP_SELF, $self_matches) )36 if ( preg_match('#([^/]+\.php)([?/].*?)?$#i', $_SERVER['PHP_SELF'], $self_matches) ) 37 37 $pagenow = strtolower($self_matches[1]); 38 38 else
Note: See TracChangeset
for help on using the changeset viewer.