Skip to content

Commit 1b490d3

Browse files
committed
remove unnecessary function
1 parent b7406d3 commit 1b490d3

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

inc/Services/Editor.php

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@ public function boot( Service_Container $container ): void {
4747
*/
4848
$this->register_custom_block_styles();
4949

50-
/**
51-
* Customize theme.json settings
52-
*/
53-
add_filter( 'wp_theme_json_data_theme', [ $this, 'filter_theme_json_theme' ], 10, 1 );
54-
5550
/**
5651
* Load editor JS for ADMIN
5752
*/
@@ -78,27 +73,6 @@ private function style(): void {
7873
add_editor_style( 'dist/' . $file );
7974
}
8075

81-
/**
82-
* Theme.json settings
83-
* See https://developer.wordpress.org/block-editor/reference-guides/theme-json-reference/theme-json-living/
84-
*
85-
* @param WP_Theme_JSON_Data $theme_json Class to access and update the underlying data.
86-
*
87-
* return WP_Theme_JSON_Data
88-
*/
89-
public function filter_theme_json_theme( \WP_Theme_JSON_Data $theme_json ): \WP_Theme_JSON_Data {
90-
$custom_theme_json = [
91-
'version' => 2,
92-
'settings' => [
93-
'typography' => [
94-
'dropCap' => false,
95-
],
96-
],
97-
];
98-
99-
return $theme_json->update_with( $custom_theme_json );
100-
}
101-
10276
/**
10377
* Editor script
10478
*/

0 commit comments

Comments
 (0)