mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
better Apache mod detection from andy. fixes #6278
git-svn-id: https://develop.svn.wordpress.org/trunk@7441 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1,18 +1,7 @@
|
||||
<?php
|
||||
|
||||
function got_mod_rewrite() {
|
||||
global $is_apache;
|
||||
|
||||
// take 3 educated guesses as to whether or not mod_rewrite is available
|
||||
if ( !$is_apache )
|
||||
return false;
|
||||
|
||||
if ( function_exists( 'apache_get_modules' ) ) {
|
||||
if ( !in_array( 'mod_rewrite', apache_get_modules() ) )
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
return apache_mod_loaded('mod_rewrite');
|
||||
}
|
||||
|
||||
// Returns an array of strings from a file (.htaccess ) from between BEGIN
|
||||
|
||||
Reference in New Issue
Block a user