Changeset 55257 for trunk/src/wp-includes/blocks/navigation-link.php
- Timestamp:
- 02/07/2023 12:57:52 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/navigation-link.php
r55246 r55257 372 372 } 373 373 add_action( 'init', 'register_block_core_navigation_link' ); 374 375 /**376 * Enables animation of the block inspector for the Navigation Link block.377 *378 * See:379 * - https://github.com/WordPress/gutenberg/pull/46342380 * - https://github.com/WordPress/gutenberg/issues/45884381 *382 * @param array $settings Default editor settings.383 * @return array Filtered editor settings.384 */385 function block_core_navigation_link_enable_inspector_animation( $settings ) {386 $current_animation_settings = _wp_array_get(387 $settings,388 array( '__experimentalBlockInspectorAnimation' ),389 array()390 );391 392 $settings['__experimentalBlockInspectorAnimation'] = array_merge(393 $current_animation_settings,394 array(395 'core/navigation-link' =>396 array(397 'enterDirection' => 'rightToLeft',398 ),399 )400 );401 402 return $settings;403 }404 405 add_filter( 'block_editor_settings_all', 'block_core_navigation_link_enable_inspector_animation' );
Note: See TracChangeset
for help on using the changeset viewer.