Make WordPress Core


Ignore:
Timestamp:
10/16/2023 07:14:55 PM (8 months ago)
Author:
karmatosed
Message:

Update editor related npm packages for 6.4 RC1.

The npm packages needed a second part to the update for 6.4 RC1.

Props isabel_brison, andrewserong, jsnajdr, wildworks, joen, mciampini, tyxla, youknowriad, ramonopoly, spacedmonkey, dmsnell, mikachan, kishanjasani, czapla, siobhyb, darerodz, luisherranz

See #59411.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks/image.php

    r56849 r56945  
    171171        $img_uploaded_src = wp_get_attachment_url( $block['attrs']['id'] );
    172172        $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';
    175175    } else {
    176176        $img_uploaded_src = $processor->get_attribute( 'src' );
Note: See TracChangeset for help on using the changeset viewer.