Safely include class-json.php, class-simplepie.php and class-snoopy.php, props alexkingorg, fixes #11827

git-svn-id: https://develop.svn.wordpress.org/trunk@12705 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2010-01-12 13:22:43 +00:00
parent 13c187210d
commit 156b5d27c3
3 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,5 @@
<?php
if ( !class_exists( 'Services_JSON' ) ) :
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
* Converts to and from JSON format.
@ -858,3 +859,5 @@ if (class_exists('PEAR_Error')) {
}
}
endif;
?>

View File

@ -1,4 +1,5 @@
<?php
if ( !class_exists( 'SimplePie' ) ) :
/**
* SimplePie
*
@ -14997,5 +14998,5 @@ class SimplePie_Sanitize
}
}
}
endif;
?>

View File

@ -1,5 +1,5 @@
<?php
if ( !in_array('Snoopy', get_declared_classes() ) ) :
if ( !class_exists( 'Snoopy' ) ) :
/*************************************************
Snoopy - the PHP net client