Changeset 25456 for trunk/src/wp-admin/includes/misc.php
- Timestamp:
- 09/16/2013 08:06:27 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/misc.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/misc.php
r24762 r25456 8 8 9 9 /** 10 * {@internal Missing Short Description}}10 * Returns whether the server is running Apache with the mod_rewrite module loaded. 11 11 * 12 12 * @since 2.0.0 13 13 * 14 * @return unknown14 * @return bool 15 15 */ 16 16 function got_mod_rewrite() { 17 17 $got_rewrite = apache_mod_loaded('mod_rewrite', true); 18 19 /** 20 * Filter whether Apache and mod_rewrite are present. 21 * 22 * This filter was previously used to force URL rewriting for other servers, 23 * like nginx. Use the got_url_rewrite filter in got_url_rewrite() instead. 24 * 25 * @see got_url_rewrite() 26 * 27 * @since 2.5.0 28 * @param bool $got_rewrite Whether Apache and mod_rewrite are present. 29 */ 18 30 return apply_filters('got_rewrite', $got_rewrite); 31 } 32 33 /** 34 * Returns whether the server supports URL rewriting. 35 * 36 * Detects Apache's mod_rewrite, IIS 7.0+ permalink support, and nginx. 37 * 38 * @since 3.7.0 39 * 40 * @return bool Whether the server supports URL rewriting. 41 */ 42 function got_url_rewrite() { 43 $got_url_rewrite = ( got_mod_rewrite() || $GLOBALS['is_nginx'] || iis7_supports_permalinks() ); 44 45 /** 46 * Filter whether URL rewriting is available. 47 * 48 * @since 3.7.0 49 * @param bool $got_url_rewrite Whether URL rewriting is available. 50 */ 51 return apply_filters( 'got_url_rewrite', $got_url_rewrite ); 19 52 } 20 53
Note: See TracChangeset
for help on using the changeset viewer.