| @@ -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 |
| @@ -373,9 +380,9 @@ | ||
| 373 | 380 | * @return string Input argument of the filter. |
| 374 | 381 | */ |
| 375 | 382 | function _gutenberg_footnotes_force_filtered_html_on_import_filter( $arg ) { |
| 376 | 383 | if ( function_exists( '_wp_filter_post_meta_footnotes' ) ) { |
| 377 | - return; | |
| 384 | + return $arg; | |
| 378 | 385 | } |
| 379 | 386 | // force_filtered_html_on_import is true we need to init the global styles kses filters. |
| 380 | 387 | if ( $arg ) { |
| 381 | 388 | _gutenberg_footnotes_kses_init_filters(); |