wp_version;
// Strip off any -alpha, -RC, -beta, -src suffixes.
list( $version ) = explode( '-', $wp_version );
return empty( $required ) || version_compare( $version, $required, '>=' );
}
/**
* Checks compatibility with the current PHP version.
*
* @since 5.2.0
*
* @param string $required Minimum required PHP version.
* @return bool True if required version is compatible or empty, false if not.
*/
function is_php_version_compatible( $required ) {
return empty( $required ) || version_compare( phpversion(), $required, '>=' );
}
/**
* Checks if two numbers are nearly the same.
*
* This is similar to using `round()` but the precision is more fine-grained.
*
* @since 5.3.0
*
* @param int|float $expected The expected value.
* @param int|float $actual The actual number.
* @param int|float $precision The allowed variation.
* @return bool Whether the numbers match within the specified precision.
*/
function wp_fuzzy_number_match( $expected, $actual, $precision = 1 ) {
return abs( (float) $expected - (float) $actual ) <= $precision;
}
/**
* Sorts the keys of an array alphabetically.
* The array is passed by reference so it doesn't get returned
* which mimics the behaviour of ksort.
*
* @since 6.0.0
*
* @param array $array The array to sort, passed by reference.
*/
function wp_recursive_ksort( &$array ) {
foreach ( $array as &$value ) {
if ( is_array( $value ) ) {
wp_recursive_ksort( $value );
}
}
ksort( $array );
}
Fatal error: Uncaught Error: Call to undefined function is_blog_installed() in /home/mrfilame/public_html/wp-includes/load.php:755
Stack trace:
#0 /home/mrfilame/public_html/wp-settings.php(159): wp_not_installed()
#1 /home/mrfilame/public_html/wp-config.php(96): require_once('/home/mrfilame/...')
#2 /home/mrfilame/public_html/wp-load.php(50): require_once('/home/mrfilame/...')
#3 /home/mrfilame/public_html/wp-blog-header.php(13): require_once('/home/mrfilame/...')
#4 /home/mrfilame/public_html/index.php(17): require('/home/mrfilame/...')
#5 {main}
thrown in /home/mrfilame/public_html/wp-includes/load.php on line 755
Fatal error: Uncaught Error: Call to undefined function get_option() in /home/mrfilame/public_html/wp-includes/l10n.php:63
Stack trace:
#0 /home/mrfilame/public_html/wp-includes/l10n.php(137): get_locale()
#1 /home/mrfilame/public_html/wp-includes/l10n.php(835): determine_locale()
#2 /home/mrfilame/public_html/wp-includes/class-wp-fatal-error-handler.php(46): load_default_textdomain()
#3 [internal function]: WP_Fatal_Error_Handler->handle()
#4 {main}
thrown in /home/mrfilame/public_html/wp-includes/l10n.php on line 63