Changeset 58033
- Timestamp:
- 04/22/2024 08:33:31 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r58009 r58033 2128 2128 $size_array = wp_image_src_get_dimensions( $image_src, $image_meta, $attachment_id ); 2129 2129 2130 if ( $size_array ) {2130 if ( $size_array && $size_array[0] && $size_array[1] ) { 2131 2131 // If the width is enforced through style (e.g. in an inline image), calculate the dimension attributes. 2132 2132 $style_width = preg_match( '/style="width:\s*(\d+)px;"/', $image, $match_width ) ? (int) $match_width[1] : 0;
Note: See TracChangeset
for help on using the changeset viewer.