private static function get_wp_details()
{
$versions_path = ABSPATH . 'wp-includes/version.php';
if (!is_readable($versions_path)) {
WP_CLI::error("This does not seem to be a WordPress install.\n" . "Pass --path=`path/to/wordpress` or run `wp core download`.");
}
$version_content = file_get_contents($versions_path, null, null, 6, 2048);
$vars = array('wp_version', 'wp_db_version', 'tinymce_version', 'wp_local_package');
$result = array();
foreach ($vars as $var_name) {
$result[$var_name] = self::find_var($var_name, $version_content);
}
return $result;
}