public static function file_get_contents( $file, ...$args ) { if ( ! is_file( $file ) || ! is_readable( $file ) ) { return false; } return file_get_contents( $file, ...$args ); } public static function get_super_global_value( $super_global, $key ) { if ( ! isset( $super_global[ $key ] ) ) { return null; } if ( $_FILES === $super_global ) { return isset( $super_global[ $key ]['name'] ) ? self::sanitize_file_name( $super_global[ $key ] ) : self::sanitize_multi_upload( $super_global[ $key ] ); } return wp_kses_post_deep( wp_unslash( $super_global[ $key ] ) ); } private static function sanitize_multi_upload( $fields ) { return array_map( function( $field ) { return array_map( 'self::sanitize_file_name', $field ); }, $fields ); } private static function sanitize_file_name( $file ) { $file['name'] = sanitize_file_name( $file['name'] ); return $file; } /** * Return specific object property value if exist from array of keys. * * @param $array * @param $keys * @return key|false */ public static function get_array_value_by_keys( $array, $keys ) { $keys = (array) $keys; foreach ( $keys as $key ) { if ( ! isset( $array[ $key ] ) ) { return null; } $array = $array[ $key ]; } return $array; } public static function get_cached_callback( $callback, $cache_key, $cache_time = 24 * HOUR_IN_SECONDS ) { $cache = get_site_transient( $cache_key ); if ( ! $cache ) { $cache = call_user_func( $callback ); if ( ! is_wp_error( $cache ) ) { set_site_transient( $cache_key, $cache, $cache_time ); } } return $cache; } }
Fatal error: Uncaught Error: Class 'Elementor\Utils' not found in /home/sportuga/public_html/wp-content/plugins/elementor/core/experiments/manager.php:1028 Stack trace: #0 /home/sportuga/public_html/wp-content/plugins/elementor/includes/plugin.php(706): Elementor\Core\Experiments\Manager->__construct() #1 /home/sportuga/public_html/wp-content/plugins/elementor/includes/plugin.php(647): Elementor\Plugin->init_components() #2 /home/sportuga/public_html/wp-includes/class-wp-hook.php(324): Elementor\Plugin->init('') #3 /home/sportuga/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #4 /home/sportuga/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #5 /home/sportuga/public_html/wp-settings.php(695): do_action('init') #6 /home/sportuga/public_html/wp-config.php(102): require_once('/home/sportuga/...') #7 /home/sportuga/public_html/wp-load.php(50): require_once('/home/sportuga/...') #8 /home/sportuga/public_html/wp-blog-header.php(13): require_once('/home/sportuga/...') #9 /ho in /home/sportuga/public_html/wp-content/plugins/elementor/core/experiments/manager.php on line 1028