Make WordPress Core


Ignore:
Timestamp:
02/07/2023 12:57:52 PM (14 months ago)
Author:
youknowriad
Message:

Block Editor: Updates the WordPress packages with all the fixes targetted for WP 6.2 beta1.

Includes the following changes

  • Fix multi entities saved state in the post editor
  • Adds a global save button to the site editor
  • Shadow: move shadow to own panel
  • [Block Editor]: Lock experimentalBlockInspectorAnimation setting
  • useBlockSync: change subscribed.current on unsubscribe
  • [Block Library - Gallery]: Minor code quality update
  • [Patterns]: Reorder pattern categories
  • Fix inline preview infinite render
  • Show a pointer/hint in the settings tab informing the user about the styles tab
  • I18N: update string concatenation method in read more block
  • LocalAutosaveNotice: use stable notice id to prevent double notices
  • Navigation: Remove the IS_GUTENBERG_PLUGIN check around block_core_navigation_parse_blocks_from_menu_items

Props mamaduka, ntsekouras, kebbet.
See #57471.

File:
1 edited

Legend:

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

    r55246 r55257  
    290290}
    291291add_action( 'init', 'register_block_core_navigation_submenu' );
    292 
    293 /**
    294  * Enables animation of the block inspector for the Navigation Submenu block.
    295  *
    296  * See:
    297  * - https://github.com/WordPress/gutenberg/pull/46342
    298  * - https://github.com/WordPress/gutenberg/issues/45884
    299  *
    300  * @param array $settings Default editor settings.
    301  * @return array Filtered editor settings.
    302  */
    303 function block_core_navigation_submenu_enable_inspector_animation( $settings ) {
    304     $current_animation_settings = _wp_array_get(
    305         $settings,
    306         array( '__experimentalBlockInspectorAnimation' ),
    307         array()
    308     );
    309 
    310     $settings['__experimentalBlockInspectorAnimation'] = array_merge(
    311         $current_animation_settings,
    312         array(
    313             'core/navigation-submenu' =>
    314                 array(
    315                     'enterDirection' => 'rightToLeft',
    316                 ),
    317         )
    318     );
    319 
    320     return $settings;
    321 }
    322 
    323 add_filter( 'block_editor_settings_all', 'block_core_navigation_submenu_enable_inspector_animation' );
Note: See TracChangeset for help on using the changeset viewer.