Compat function, fixes #2319

git-svn-id: https://develop.svn.wordpress.org/trunk@3471 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2006-01-23 23:15:17 +00:00
parent dbdd0e5d84
commit 55cb586498
1 changed files with 8 additions and 0 deletions

View File

@ -47,6 +47,14 @@ function printr($var, $do_not_echo = false) {
return $code;
}
/* compatibility with PHP versions older than 4.3 */
if ( !function_exists('file_get_contents') ) {
function file_get_contents( $file ) {
$file = file($file);
return !$file ? false : implode('', $file);
}
}
if (!defined('CASE_LOWER')) {
define('CASE_LOWER', 0);
}