Changeset 56386
- Timestamp:
- 08/11/2023 11:33:27 AM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r56347 r56386 5773 5773 wp_increase_content_media_count(); 5774 5774 } elseif ( $maybe_increase_count ) { 5775 /** This filter is documented in wp- admin/includes/media.php */5775 /** This filter is documented in wp-includes/media.php */ 5776 5776 $wp_min_priority_img_pixels = apply_filters( 'wp_min_priority_img_pixels', 50000 ); 5777 5777 … … 5863 5863 wp_high_priority_element_flag( false ); 5864 5864 } 5865 5865 5866 return $loading_attrs; 5866 5867 } … … 5883 5884 */ 5884 5885 $wp_min_priority_img_pixels = apply_filters( 'wp_min_priority_img_pixels', 50000 ); 5886 5885 5887 if ( $wp_min_priority_img_pixels <= $attr['width'] * $attr['height'] ) { 5886 5888 $loading_attrs['fetchpriority'] = 'high'; 5887 5889 wp_high_priority_element_flag( false ); 5888 5890 } 5891 5889 5892 return $loading_attrs; 5890 5893 } … … 5905 5908 $high_priority_element = $value; 5906 5909 } 5910 5907 5911 return $high_priority_element; 5908 5912 }
Note: See TracChangeset
for help on using the changeset viewer.