4 * |
4 * |
5 * Sets $pagenow global which is the current page. Checks |
5 * Sets $pagenow global which is the current page. Checks |
6 * for the browser to set which one is currently being used. |
6 * for the browser to set which one is currently being used. |
7 * |
7 * |
8 * Detects which user environment WordPress is being used on. |
8 * Detects which user environment WordPress is being used on. |
9 * Only attempts to check for Apache and IIS. Two web servers |
9 * Only attempts to check for Apache, Nginx and IIS -- three web |
10 * with known permalink capability. |
10 * servers with known pretty permalink capability. |
|
11 * |
|
12 * Note: Though Nginx is detected, WordPress does not currently |
|
13 * generate rewrite rules for it. See https://codex.wordpress.org/Nginx |
11 * |
14 * |
12 * @package WordPress |
15 * @package WordPress |
13 */ |
16 */ |
14 |
17 |
15 global $pagenow, |
18 global $pagenow, |
16 $is_lynx, $is_gecko, $is_winIE, $is_macIE, $is_opera, $is_NS4, $is_safari, $is_chrome, $is_iphone, $is_IE, |
19 $is_lynx, $is_gecko, $is_winIE, $is_macIE, $is_opera, $is_NS4, $is_safari, $is_chrome, $is_iphone, $is_IE, |
17 $is_apache, $is_IIS, $is_iis7; |
20 $is_apache, $is_IIS, $is_iis7, $is_nginx; |
18 |
21 |
19 // On which page are we ? |
22 // On which page are we ? |
20 if ( is_admin() ) { |
23 if ( is_admin() ) { |
21 // wp-admin pages are checked more carefully |
24 // wp-admin pages are checked more carefully |
22 if ( is_network_admin() ) |
25 if ( is_network_admin() ) |