WordPress Version: 3.7
function get_file($path)
{
if (function_exists('realpath')) {
$path = realpath($path);
}
if (!$path || !@is_file($path)) {
return false;
}
return @file_get_contents($path);
}
The timeline below displays how wordpress function get_file has changed across different WordPress versions. If a version is not listed, refer to the next available version below.
function get_file($path)
{
if (function_exists('realpath')) {
$path = realpath($path);
}
if (!$path || !@is_file($path)) {
return false;
}
return @file_get_contents($path);
}