Changeset 18993
- Timestamp:
- 10/18/2011 07:37:07 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
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 -
trunk/wp-settings.php
r18756 r18993 76 76 77 77 // Set the database table prefix and the format specifiers for database table columns. 78 $GLOBALS['table_prefix'] = $table_prefix; 78 79 wp_set_wpdb_vars(); 79 80
Note: See TracChangeset
for help on using the changeset viewer.