mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-09 11:40:04 +00:00
Pass false as the 2nd argument to class_exists() to disable autoloading and to not cause problems for those who define __autoload().
Fixes #20523. git-svn-id: https://develop.svn.wordpress.org/trunk@34348 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -454,8 +454,9 @@ function set_screen_options() {
|
||||
function iis7_rewrite_rule_exists($filename) {
|
||||
if ( ! file_exists($filename) )
|
||||
return false;
|
||||
if ( ! class_exists('DOMDocument') )
|
||||
if ( ! class_exists( 'DOMDocument', false ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$doc = new DOMDocument();
|
||||
if ( $doc->load($filename) === false )
|
||||
@@ -481,8 +482,9 @@ function iis7_delete_rewrite_rule($filename) {
|
||||
if ( ! file_exists($filename) )
|
||||
return true;
|
||||
|
||||
if ( ! class_exists('DOMDocument') )
|
||||
if ( ! class_exists( 'DOMDocument', false ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$doc = new DOMDocument();
|
||||
$doc->preserveWhiteSpace = false;
|
||||
@@ -511,8 +513,9 @@ function iis7_delete_rewrite_rule($filename) {
|
||||
* @return bool
|
||||
*/
|
||||
function iis7_add_rewrite_rule($filename, $rewrite_rule) {
|
||||
if ( ! class_exists('DOMDocument') )
|
||||
if ( ! class_exists( 'DOMDocument', false ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// If configuration file does not exist then we create one.
|
||||
if ( ! file_exists($filename) ) {
|
||||
|
||||
Reference in New Issue
Block a user