PluginProbe
Gutenberg / trunk
Gutenberg vtrunk
24.1.0 24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 All 404 releases
← All changes | lib/blocks.php +7 -0 23.7.2 → trunk View file →
@@ -39,8 +39,15 @@
39 39 }
40 40
41 41 add_action( 'init', 'gutenberg_reregister_core_block_types' );
42 42
43 +/*
44 + * Remove the WordPress core filter to avoid generating a second tabs ID for
45 + * every tabs block: `wp_unique_prefixed_id()` advances a counter, so running
46 + * both copies makes the numbering skip.
47 + */
48 +remove_filter( 'render_block_context', 'block_core_tabs_provide_context', 10 );
49 +
43 50 /**
44 51 * Adds the defer loading strategy to all registered blocks.
45 52 *
46 53 * This function would not be part of core merge. Instead, the register_block_script_handle() function would be patched