diff --git a/packages/block-library/src/tabs/controls.js b/packages/block-library/src/tabs/controls.js
index b59d8a8b998ad4..a922748b36de43 100644
--- a/packages/block-library/src/tabs/controls.js
+++ b/packages/block-library/src/tabs/controls.js
@@ -1,70 +1,14 @@
-/**
- * WordPress dependencies
- */
-import { __ } from '@wordpress/i18n';
-import {
- TextControl,
- __experimentalToolsPanel as ToolsPanel,
- __experimentalToolsPanelItem as ToolsPanelItem,
-} from '@wordpress/components';
-import { InspectorControls } from '@wordpress/block-editor';
-
/**
* Internal dependencies
*/
import AddTabToolbarControl from '../tab/add-tab-toolbar-control';
import RemoveTabToolbarControl from '../tab/remove-tab-toolbar-control';
-import { useToolsPanelDropdownMenuProps } from '../utils/hooks';
-
-export default function Controls( { attributes, setAttributes, clientId } ) {
- const {
- metadata = {
- name: '',
- },
- } = attributes;
-
- const dropdownMenuProps = useToolsPanelDropdownMenuProps();
+export default function Controls( { clientId } ) {
return (
<>
-
- {
- setAttributes( {
- metadata: { ...metadata, name: '' },
- } );
- } }
- dropdownMenuProps={ dropdownMenuProps }
- >
- !! metadata.name }
- onDeselect={ () => {
- setAttributes( {
- metadata: { ...metadata, name: '' },
- } );
- } }
- isShownByDefault
- >
- {
- setAttributes( {
- metadata: { ...metadata, name: value },
- } );
- } }
- __next40pxDefaultSize
- />
-
-
-
>
);
}
diff --git a/packages/block-library/src/tabs/index.php b/packages/block-library/src/tabs/index.php
index 0e027a8cd3488f..0bb4c9996a4e25 100644
--- a/packages/block-library/src/tabs/index.php
+++ b/packages/block-library/src/tabs/index.php
@@ -97,12 +97,6 @@ function block_core_tabs_render_block_callback( array $attributes, string $conte
return '';
}
- $title = $attributes['metadata']['name'] ?? '';
- if ( empty( $title ) ) {
- $title = 'Tab Contents';
- }
- $title = wp_sprintf( '
%s
', esc_html( $title ) );
-
$is_vertical = false;
$tag_processor = new WP_HTML_Tag_Processor( $content );
@@ -135,9 +129,6 @@ function block_core_tabs_render_block_callback( array $attributes, string $conte
$output = $tag_processor->get_updated_html();
- // Insert the title after the first opening tag.
- $output = preg_replace( '/^(<[^>]+>)/', '$1' . $title, $output );
-
/**
* Builds a client side state for just this tabs instance.
* This allows 3rd party extensibility of tabs while retaining