Ticket #6278: 6278-default.diff
| File 6278-default.diff, 0.9 kB (added by andy, 5 months ago) |
|---|
-
wp-includes/functions.php
old new 1727 1727 * @param string $mod e.g. mod_rewrite 1728 1728 * @return bool 1729 1729 */ 1730 function apache_mod_loaded($mod ) {1730 function apache_mod_loaded($mod, $default = false) { 1731 1731 global $is_apache; 1732 1732 1733 1733 if ( !$is_apache ) … … 1744 1744 if ( false !== strpos($phpinfo, $mod) ) 1745 1745 return true; 1746 1746 } 1747 return false;1747 return $default; 1748 1748 } 1749 1749 1750 1750 ?> -
wp-admin/includes/misc.php
old new 1 1 <?php 2 2 3 3 function got_mod_rewrite() { 4 return apache_mod_loaded('mod_rewrite' );4 return apache_mod_loaded('mod_rewrite', true); 5 5 } 6 6 7 7 // Returns an array of strings from a file (.htaccess ) from between BEGIN
