From 55cb5864982cbc808a75fa595d2446cc96dcd7bd Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Mon, 23 Jan 2006 23:15:17 +0000 Subject: [PATCH] Compat function, fixes #2319 git-svn-id: https://develop.svn.wordpress.org/trunk@3471 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions-compat.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wp-includes/functions-compat.php b/wp-includes/functions-compat.php index 3d86918369..b2de8a98d9 100644 --- a/wp-includes/functions-compat.php +++ b/wp-includes/functions-compat.php @@ -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); }