rebase code on oct-10-2023
This commit is contained in:
@@ -5622,7 +5622,7 @@ function wp_get_loading_optimization_attributes( $tag_name, $attr, $context ) {
|
||||
};
|
||||
// Closure to increase media count for images with certain minimum threshold, mostly used for header images.
|
||||
$maybe_increase_content_media_count = static function() use ( $attr ) {
|
||||
/** This filter is documented in wp-includes/media.php */
|
||||
/** This filter is documented in wp-admin/includes/media.php */
|
||||
$wp_min_priority_img_pixels = apply_filters( 'wp_min_priority_img_pixels', 50000 );
|
||||
// Images with a certain minimum size in the header of the page are also counted towards the threshold.
|
||||
if ( $wp_min_priority_img_pixels <= $attr['width'] * $attr['height'] ) {
|
||||
|
||||
Reference in New Issue
Block a user