Changeset 56945 for trunk/src/wp-includes/blocks/image.php
- Timestamp:
- 10/16/2023 07:14:55 PM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/image.php
r56849 r56945 171 171 $img_uploaded_src = wp_get_attachment_url( $block['attrs']['id'] ); 172 172 $img_metadata = wp_get_attachment_metadata( $block['attrs']['id'] ); 173 $img_width = $img_metadata['width'] ;174 $img_height = $img_metadata['height'] ;173 $img_width = $img_metadata['width'] ?? 'none'; 174 $img_height = $img_metadata['height'] ?? 'none'; 175 175 } else { 176 176 $img_uploaded_src = $processor->get_attribute( 'src' );
Note: See TracChangeset
for help on using the changeset viewer.