summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-includes/functions-compat.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-01-24 14:02:03 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-01-24 14:02:03 +0000
commitdbd5b2e2e7e46eda5233d61f01793e41a8d8e6fd (patch)
tree36cc2bc24306895ce5b20353d87156d4eeb6963c /wp-inst/wp-includes/functions-compat.php
parent6c1930bf126a5059115dfe7895ac448b86518c8b (diff)
WP Merge
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@514 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-includes/functions-compat.php')
-rw-r--r--wp-inst/wp-includes/functions-compat.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/wp-inst/wp-includes/functions-compat.php b/wp-inst/wp-includes/functions-compat.php
index 7f631e0..b6d706c 100644
--- a/wp-inst/wp-includes/functions-compat.php
+++ b/wp-inst/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);
}
@@ -64,7 +72,7 @@ if (!defined('CASE_UPPER')) {
* @link http://php.net/function.array_change_key_case
* @author Stephan Schmidt <schst@php.net>
* @author Aidan Lister <aidan@php.net>
- * @version $Revision: 3400 $
+ * @version $Revision: 3471 $
* @since PHP 4.2.0
* @require PHP 4.0.0 (user_error)
*/