mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-18 16:45:31 +01:00
Compat function, fixes #2319
git-svn-id: http://svn.automattic.com/wordpress/trunk@3471 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
51944d9f2c
commit
cdc37f33a4
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user