diff --git a/lib/blocks.php b/lib/blocks.php index 202498d278c535..4cd8fe50a8fd34 100644 --- a/lib/blocks.php +++ b/lib/blocks.php @@ -41,7 +41,7 @@ function gutenberg_reregister_core_block_types() { 'social-links', 'spacer', 'table', - 'table-of-contents', + // 'table-of-contents', 'text-columns', 'verse', 'video', @@ -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', ) ), diff --git a/packages/block-library/src/index.js b/packages/block-library/src/index.js index b62a4270672375..c4830add9cc1a7 100644 --- a/packages/block-library/src/index.js +++ b/packages/block-library/src/index.js @@ -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'; @@ -161,7 +161,7 @@ export const __experimentalGetCoreBlocks = () => [ socialLink, spacer, table, - tableOfContents, + // tableOfContents, tagCloud, textColumns, verse, diff --git a/packages/e2e-tests/fixtures/blocks/core__table-of-contents.html b/packages/e2e-tests/fixtures/blocks/core__table-of-contents.html deleted file mode 100644 index c07afd290aa83b..00000000000000 --- a/packages/e2e-tests/fixtures/blocks/core__table-of-contents.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/packages/e2e-tests/fixtures/blocks/core__table-of-contents.json b/packages/e2e-tests/fixtures/blocks/core__table-of-contents.json deleted file mode 100644 index f270e47a5262ca..00000000000000 --- a/packages/e2e-tests/fixtures/blocks/core__table-of-contents.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "clientId": "_clientId_0", - "name": "core/table-of-contents", - "isValid": true, - "attributes": { - "onlyIncludeCurrentPage": false - }, - "innerBlocks": [], - "originalContent": "" - } -] diff --git a/packages/e2e-tests/fixtures/blocks/core__table-of-contents.parsed.json b/packages/e2e-tests/fixtures/blocks/core__table-of-contents.parsed.json deleted file mode 100644 index f6ea98b753764c..00000000000000 --- a/packages/e2e-tests/fixtures/blocks/core__table-of-contents.parsed.json +++ /dev/null @@ -1,16 +0,0 @@ -[ - { - "blockName": "core/table-of-contents", - "attrs": {}, - "innerBlocks": [], - "innerHTML": "", - "innerContent": [] - }, - { - "blockName": null, - "attrs": {}, - "innerBlocks": [], - "innerHTML": "\n", - "innerContent": [ "\n" ] - } -] diff --git a/packages/e2e-tests/fixtures/blocks/core__table-of-contents.serialized.html b/packages/e2e-tests/fixtures/blocks/core__table-of-contents.serialized.html deleted file mode 100644 index cd71582269d837..00000000000000 --- a/packages/e2e-tests/fixtures/blocks/core__table-of-contents.serialized.html +++ /dev/null @@ -1 +0,0 @@ -