| @@ -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 |