Skip to content

Commit

Permalink
TOC block: Deregister until issues are resolved (#29718)
Browse files Browse the repository at this point in the history
Commented-out the lines that register the block.
Since this is only temporary, commenting-out seems appropriate.
The e2e fixtures were removed to make the tests pass.
  • Loading branch information
aristath authored Mar 10, 2021
1 parent 2304e70 commit e707359
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 34 deletions.
4 changes: 2 additions & 2 deletions lib/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function gutenberg_reregister_core_block_types() {
'social-links',
'spacer',
'table',
'table-of-contents',
// 'table-of-contents',
'text-columns',
'verse',
'video',
Expand Down Expand Up @@ -89,7 +89,7 @@ function gutenberg_reregister_core_block_types() {
'site-logo.php' => 'core/site-logo',
'site-tagline.php' => 'core/site-tagline',
'site-title.php' => 'core/site-title',
'table-of-contents.php' => 'core/table-of-contents',
// 'table-of-contents.php' => 'core/table-of-contents',
'template-part.php' => 'core/template-part',
)
),
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ import * as separator from './separator';
import * as shortcode from './shortcode';
import * as spacer from './spacer';
import * as table from './table';
import * as tableOfContents from './table-of-contents';
// import * as tableOfContents from './table-of-contents';
import * as textColumns from './text-columns';
import * as verse from './verse';
import * as video from './video';
Expand Down Expand Up @@ -161,7 +161,7 @@ export const __experimentalGetCoreBlocks = () => [
socialLink,
spacer,
table,
tableOfContents,
// tableOfContents,
tagCloud,
textColumns,
verse,
Expand Down

This file was deleted.

12 changes: 0 additions & 12 deletions packages/e2e-tests/fixtures/blocks/core__table-of-contents.json

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit e707359

Please sign in to comment.