diff --git wp-includes/load.php wp-includes/load.php
index c70eeeb..8c80f65 100644
|
|
function wp_unregister_GLOBALS() { |
39 | 39 | * @since 3.0.0 |
40 | 40 | */ |
41 | 41 | function wp_fix_server_vars() { |
42 | | global $PHP_SELF; |
43 | | |
44 | 42 | $default_server_values = array( |
45 | 43 | 'SERVER_SOFTWARE' => '', |
46 | 44 | 'REQUEST_URI' => '', |
… |
… |
function wp_fix_server_vars() { |
87 | 85 | unset( $_SERVER['PATH_INFO'] ); |
88 | 86 | |
89 | 87 | // Fix empty PHP_SELF |
90 | | $PHP_SELF = $_SERVER['PHP_SELF']; |
91 | | if ( empty( $PHP_SELF ) ) |
92 | | $_SERVER['PHP_SELF'] = $PHP_SELF = preg_replace( '/(\?.*)?$/', '', $_SERVER["REQUEST_URI"] ); |
| 88 | if ( empty( $_SERVER['PHP_SELF'] ) ) |
| 89 | $_SERVER['PHP_SELF'] = preg_replace( '/(\?.*)?$/', '', $_SERVER['REQUEST_URI'] ); |
93 | 90 | } |
94 | 91 | |
95 | 92 | /** |
diff --git wp-includes/vars.php wp-includes/vars.php
index aca78f1..70dff6e 100644
|
|
|
16 | 16 | if ( is_admin() ) { |
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, '/'); |
26 | 26 | $pagenow = preg_replace('#\?.*?$#', '', $pagenow); |
… |
… |
if ( is_admin() ) { |
33 | 33 | $pagenow .= '.php'; // for Options +Multiviews: /wp-admin/themes/index.php (themes.php is queried) |
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 |
39 | 39 | $pagenow = 'index.php'; |
diff --git wp-settings.php wp-settings.php
index 6c5346f..7897e73 100644
|
|
require( ABSPATH . WPINC . '/plugin.php' ); |
75 | 75 | require_wp_db(); |
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 | |
80 | 81 | // Start the WordPress object cache, or an external object cache if the drop-in is present. |