ag( false );
}
return $loading_attrs;
}
// Lazy-loading and `fetchpriority="high"` are mutually exclusive.
if ( isset( $loading_attrs['loading'] ) && 'lazy' === $loading_attrs['loading'] ) {
return $loading_attrs;
}
if ( ! wp_high_priority_element_flag() ) {
return $loading_attrs;
}
/**
* Filters the minimum square-pixels threshold for an image to be eligible as the high-priority image.
*
* @since 6.3.0
*
* @param int $threshold Minimum square-pixels threshold. Default 50000.
*/
$wp_min_priority_img_pixels = apply_filters( 'wp_min_priority_img_pixels', 50000 );
if ( $wp_min_priority_img_pixels <= $attr['width'] * $attr['height'] ) {
$loading_attrs['fetchpriority'] = 'high';
wp_high_priority_element_flag( false );
}
return $loading_attrs;
}
/**
* Accesses a flag that indicates if an element is a possible candidate for `fetchpriority='high'`.
*
* @since 6.3.0
* @access private
*
* @param bool $value Optional. Used to change the static variable. Default null.
* @return bool Returns true if high-priority element was marked already, otherwise false.
*/
function wp_high_priority_element_flag( $value = null ) {
static $high_priority_element = true;
if ( is_bool( $value ) ) {
$high_priority_element = $value;
}
return $high_priority_element;
}
Fatal error: Uncaught Error: Call to undefined function wp_get_audio_extensions() in /home/sportuga/public_html/wp-includes/embed.php:214
Stack trace:
#0 /home/sportuga/public_html/wp-includes/class-wp-hook.php(324): wp_maybe_load_embeds('')
#1 /home/sportuga/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#2 /home/sportuga/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#3 /home/sportuga/public_html/wp-settings.php(550): do_action('plugins_loaded')
#4 /home/sportuga/public_html/wp-config.php(102): require_once('/home/sportuga/...')
#5 /home/sportuga/public_html/wp-load.php(50): require_once('/home/sportuga/...')
#6 /home/sportuga/public_html/wp-blog-header.php(13): require_once('/home/sportuga/...')
#7 /home/sportuga/public_html/index.php(17): require('/home/sportuga/...')
#8 {main}
thrown in /home/sportuga/public_html/wp-includes/embed.php on line 214