get_file( $path )


Description Description


Source Source

File: wp-admin/includes/noop.php

103
104
105
106
107
108
109
110
111
112
113
114
function get_file( $path ) {
 
    if ( function_exists( 'realpath' ) ) {
        $path = realpath( $path );
    }
 
    if ( ! $path || ! @is_file( $path ) ) {
        return '';
    }
 
    return @file_get_contents( $path );
}

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.