Make WordPress Core


Ignore:
Timestamp:
06/27/2023 02:20:18 PM (2 years ago)
Author:
Bernhard Reiter
Message:

Editor: update Wordpress npm packages.

Updates the wordpress npm packages and their dependencies to the latest versions, as well as auto-updates to relevant core PHP files.

Props youknowriad, joemcgill, spacedmonkey, ramonopoly, peterwilsoncc, bernhard-reiter, tyxla, dmsnell.
Fixes #58623.

File:
1 edited

Legend:

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

    r55542 r56065  
    182182    $css_classes = trim( implode( ' ', $classes ) );
    183183    $has_submenu = count( $block->inner_blocks ) > 0;
    184     $is_active   = ! empty( $attributes['id'] ) && ( get_queried_object_id() === (int) $attributes['id'] );
     184    $kind        = empty( $attributes['kind'] ) ? 'post_type' : str_replace( '-', '_', $attributes['kind'] );
     185    $is_active   = ! empty( $attributes['id'] ) && get_queried_object_id() === (int) $attributes['id'] && ! empty( get_queried_object()->$kind );
    185186
    186187    $wrapper_attributes = get_block_wrapper_attributes(
Note: See TracChangeset for help on using the changeset viewer.