Make WordPress Core


Ignore:
Timestamp:
10/12/2023 01:55:27 PM (21 months ago)
Author:
hellofromTonya
Message:

Editor: Update npm packages ahead of 6.4 RC1.

Updates the npm packages and code for:

References:

Follow-up to [56818], [56816].

Props ellatrix, peterwilsoncc, jsnajdr, afercia, gziolo, isabel_brison, artemiosans, richtabor, bernhard-reiter, flixos90, mikachan, spacedmonkey, hellofromTonya.
See #59583, #59411.

File:
1 edited

Legend:

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

    r56710 r56849  
    1919    $content          = null;
    2020    $area             = WP_TEMPLATE_PART_AREA_UNCATEGORIZED;
    21 
    22     if (
    23         isset( $attributes['slug'] ) &&
    24         isset( $attributes['theme'] ) &&
    25         get_stylesheet() === $attributes['theme']
    26     ) {
    27         $template_part_id    = $attributes['theme'] . '//' . $attributes['slug'];
     21    $theme            = isset( $attributes['theme'] ) ? $attributes['theme'] : get_stylesheet();
     22
     23    if ( isset( $attributes['slug'] ) && get_stylesheet() === $theme ) {
     24        $template_part_id    = $theme . '//' . $attributes['slug'];
    2825        $template_part_query = new WP_Query(
    2926            array(
     
    3532                        'taxonomy' => 'wp_theme',
    3633                        'field'    => 'name',
    37                         'terms'    => $attributes['theme'],
     34                        'terms'    => $theme,
    3835                    ),
    3936                ),
Note: See TracChangeset for help on using the changeset viewer.