diff --git wp-admin/includes/misc.php wp-admin/includes/misc.php
index 5b609e4..9546fdd 100644
|
|
|
|
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | | * {@internal Missing Short Description}} |
| | 10 | * Returns whether or not the server is running Apache with the mod_rewrite module loaded. |
| 11 | 11 | * |
| 12 | 12 | * @since 2.0.0 |
| 13 | 13 | * |
| … |
… |
function got_mod_rewrite() { |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | /** |
| | 22 | * Returns whether or not the server supports URL rewriting. |
| | 23 | * |
| | 24 | * @since 3.7 |
| | 25 | * |
| | 26 | * @return bool Whether the server supports URL rewriting |
| | 27 | */ |
| | 28 | function got_url_rewrite() { |
| | 29 | $got_url_rewrite = ( got_mod_rewrite() || is_nginx() || iis7_supports_permalinks() ); |
| | 30 | return apply_filters( 'got_url_rewrite', $got_url_rewrite ); |
| | 31 | } |
| | 32 | |
| | 33 | /** |
| 22 | 34 | * {@internal Missing Short Description}} |
| 23 | 35 | * |
| 24 | 36 | * @since 1.5.0 |
diff --git wp-admin/options-permalink.php wp-admin/options-permalink.php
index d086fdc..3817095 100644
|
|
|
$home_path = get_home_path(); |
| 75 | 75 | $iis7_permalinks = iis7_supports_permalinks(); |
| 76 | 76 | |
| 77 | 77 | $prefix = $blog_prefix = ''; |
| 78 | | if ( ! got_mod_rewrite() && ! $iis7_permalinks ) |
| | 78 | if ( ! got_url_rewrite() ) |
| 79 | 79 | $prefix = '/index.php'; |
| 80 | 80 | if ( is_multisite() && !is_subdomain_install() && is_main_site() ) |
| 81 | 81 | $blog_prefix = '/blog'; |
diff --git wp-includes/functions.php wp-includes/functions.php
index 51f2b8f..c117216 100644
|
|
|
function is_lighttpd_before_150() { |
| 3036 | 3036 | } |
| 3037 | 3037 | |
| 3038 | 3038 | /** |
| | 3039 | * Is the server running Nginx? |
| | 3040 | * |
| | 3041 | * @since 3.7 |
| | 3042 | * |
| | 3043 | * @return bool Whether the server is running Nginx |
| | 3044 | */ |
| | 3045 | function is_nginx() { |
| | 3046 | return $GLOBALS['is_nginx']; |
| | 3047 | } |
| | 3048 | |
| | 3049 | /** |
| 3039 | 3050 | * Does the specified module exist in the Apache config? |
| 3040 | 3051 | * |
| 3041 | 3052 | * @since 2.5.0 |
diff --git wp-includes/vars.php wp-includes/vars.php
index f55cdbd..1eac808 100644
|
|
|
$is_IE = ( $is_macIE || $is_winIE ); |
| 87 | 87 | $is_apache = (strpos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== false || strpos($_SERVER['SERVER_SOFTWARE'], 'LiteSpeed') !== false); |
| 88 | 88 | |
| 89 | 89 | /** |
| | 90 | * Whether the server software is Nginx or something else |
| | 91 | * @global bool $is_nginx |
| | 92 | */ |
| | 93 | $is_nginx = (strpos($_SERVER['SERVER_SOFTWARE'], 'nginx') !== false); |
| | 94 | |
| | 95 | /** |
| 90 | 96 | * Whether the server software is IIS or something else |
| 91 | 97 | * @global bool $is_IIS |
| 92 | 98 | */ |