Changeset 24594
- Timestamp:
- 07/08/2013 08:27:06 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/misc.php
r24528 r24594 371 371 372 372 /** 373 * Check if rewrite rule for WordPress already exists in the IIS 7 configuration file373 * Check if rewrite rule for WordPress already exists in the IIS 7+ configuration file 374 374 * 375 375 * @since 2.8.0 … … 429 429 430 430 /** 431 * Add WordPress rewrite rule to the IIS 7 configuration file.431 * Add WordPress rewrite rule to the IIS 7+ configuration file. 432 432 * 433 433 * @since 2.8.0 -
trunk/wp-includes/canonical.php
r24502 r24594 19 19 * 20 20 * Prevents redirection for feeds, trackbacks, searches, comment popup, and 21 * admin URLs. Does not redirect on non-pretty-permalink-supporting IIS 7 ,21 * admin URLs. Does not redirect on non-pretty-permalink-supporting IIS 7+, 22 22 * page/post previews, WP admin, Trackbacks, robots.txt, searches, or on POST 23 23 * requests. -
trunk/wp-includes/functions.php
r24510 r24594 3039 3039 3040 3040 /** 3041 * Check if IIS 7 supports pretty permalinks.3041 * Check if IIS 7+ supports pretty permalinks. 3042 3042 * 3043 3043 * @since 2.8.0 … … 3050 3050 $supports_permalinks = false; 3051 3051 if ( $is_iis7 ) { 3052 /* First we check if the DOMDocument class exists. If it does not exist, 3053 * which is the case for PHP 4.X, then we cannot easily update the xml configuration file, 3054 * hence we just bail out and tell user that pretty permalinks cannot be used. 3055 * This is not a big issue because PHP 4.X is going to be deprecated and for IIS it 3056 * is recommended to use PHP 5.X NTS. 3052 /* First we check if the DOMDocument class exists. If it does not exist, then we cannot 3053 * easily update the xml configuration file, hence we just bail out and tell user that 3054 * pretty permalinks cannot be used. 3055 * 3057 3056 * Next we check if the URL Rewrite Module 1.1 is loaded and enabled for the web site. When 3058 3057 * URL Rewrite 1.1 is loaded it always sets a server variable called 'IIS_UrlRewriteModule'. -
trunk/wp-includes/vars.php
r21367 r24594 94 94 95 95 /** 96 * Whether the server software is IIS 7.X 96 * Whether the server software is IIS 7.X or greater 97 97 * @global bool $is_iis7 98 98 */ 99 $is_iis7 = $is_IIS && (strpos($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS/7.') !== false);99 $is_iis7 = $is_IIS && intval( substr( $_SERVER['SERVER_SOFTWARE'], strpos( $_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS/' ) + 14 ) ) >= 7; 100 100 101 101 /**
Note: See TracChangeset
for help on using the changeset viewer.