Make WordPress Core


Ignore:
Timestamp:
02/07/2025 03:44:07 PM (12 months ago)
Author:
joemcgill
Message:

Editor: Update packages for 6.8 pre-Betas.

Syncs @wordpress/* packages to the 'latest' npm tag.

Props mamaduka, joemcgill, youknowriad, swissspidy, sergiomdgomes, gziolo.
See #62887.

File:
1 edited

Legend:

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

    r59263 r59775  
    3636        }
    3737
    38         $image = get_the_post_thumbnail( null, 'post-thumbnail', $attr );
     38        $image = get_the_post_thumbnail( null, $attributes['sizeSlug'] ?? 'post-thumbnail', $attr );
    3939    } else {
    4040        if ( in_the_loop() ) {
    4141            update_post_thumbnail_cache();
    4242        }
    43         $current_featured_image = get_the_post_thumbnail_url();
     43        $current_featured_image = get_the_post_thumbnail_url( null, $attributes['sizeSlug'] ?? null );
    4444        if ( ! $current_featured_image ) {
    4545            return $content;
Note: See TracChangeset for help on using the changeset viewer.