Safely include class-json.php, class-simplepie.php and class-snoopy.php, props alexkingorg, fixes #11827
git-svn-id: http://svn.automattic.com/wordpress/trunk@12705 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a9ff034bf4
commit
bfb5ac0d25
|
@ -1,4 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
if ( !class_exists( 'Services_JSON' ) ) :
|
||||||
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
|
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
|
||||||
/**
|
/**
|
||||||
* Converts to and from JSON format.
|
* Converts to and from JSON format.
|
||||||
|
@ -858,3 +859,5 @@ if (class_exists('PEAR_Error')) {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
endif;
|
||||||
|
?>
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
if ( !class_exists( 'SimplePie' ) ) :
|
||||||
/**
|
/**
|
||||||
* SimplePie
|
* SimplePie
|
||||||
*
|
*
|
||||||
|
@ -14997,5 +14998,5 @@ class SimplePie_Sanitize
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
endif;
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
if ( !in_array('Snoopy', get_declared_classes() ) ) :
|
if ( !class_exists( 'Snoopy' ) ) :
|
||||||
/*************************************************
|
/*************************************************
|
||||||
|
|
||||||
Snoopy - the PHP net client
|
Snoopy - the PHP net client
|
||||||
|
|
Loading…
Reference in New Issue