Changeset 58974 for trunk/src/wp-includes/media.php
- Timestamp:
- 09/03/2024 05:05:33 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r58942 r58974 1974 1974 */ 1975 1975 function wp_img_tag_add_loading_optimization_attrs( $image, $context ) { 1976 $src = preg_match( '/ src=["\']?([^"\']*)/i', $image, $matche_src ) ? $matche_src[1] : null; 1976 1977 $width = preg_match( '/ width=["\']([0-9]+)["\']/', $image, $match_width ) ? (int) $match_width[1] : null; 1977 1978 $height = preg_match( '/ height=["\']([0-9]+)["\']/', $image, $match_height ) ? (int) $match_height[1] : null; … … 1988 1989 'img', 1989 1990 array( 1991 'src' => $src, 1990 1992 'width' => $width, 1991 1993 'height' => $height,
Note: See TracChangeset
for help on using the changeset viewer.