Make WordPress Core

Changeset 3471


Ignore:
Timestamp:
01/23/2006 11:15:17 PM (19 years ago)
Author:
matt
Message:

Compat function, fixes #2319

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions-compat.php

    r3400 r3471  
    4848}
    4949
     50/* compatibility with PHP versions older than 4.3 */
     51if ( !function_exists('file_get_contents') ) {
     52    function file_get_contents( $file ) {
     53        $file = file($file);
     54        return !$file ? false : implode('', $file);
     55    }
     56}
     57
    5058if (!defined('CASE_LOWER')) {
    5159    define('CASE_LOWER', 0);
Note: See TracChangeset for help on using the changeset viewer.