Skip to content

Commit e771890

Browse files
authored
Editor: Fix console warnings (#1748)
1 parent 8230162 commit e771890

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: patch
2+
Type: fixed
3+
4+
Added forward compatibility for Editor Controls, fixing deprecated warnings in the Editor.

build/editor-plugin/plugin.asset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('react', 'wp-components', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-primitives', 'wp-url'), 'version' => 'c4ec9c3a1f0d32bd9118');
1+
<?php return array('dependencies' => array('react', 'wp-components', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-primitives', 'wp-url'), 'version' => '35eb7359fc61b0d65be6');

build/editor-plugin/plugin.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/editor-plugin/plugin.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ const EditorPlugin = () => {
6161
}
6262

6363
return (
64-
<PluginDocumentSettingPanel name="activitypub" title={ __( 'Fediverse ⁂', 'activitypub' ) }>
64+
<PluginDocumentSettingPanel
65+
name="activitypub"
66+
className="block-editor-block-inspector"
67+
title={ __( 'Fediverse ⁂', 'activitypub' ) }
68+
>
6569
<TextControl
6670
label={ __( 'Content Warning', 'activitypub' ) }
6771
value={ meta?.activitypub_content_warning }
@@ -73,6 +77,8 @@ const EditorPlugin = () => {
7377
'Content warnings do not change the content on your site, only in the fediverse.',
7478
'activitypub'
7579
) }
80+
__next40pxDefaultSize
81+
__nextHasNoMarginBottom
7682
/>
7783

7884
<RangeControl
@@ -89,6 +95,8 @@ const EditorPlugin = () => {
8995
'Maximum number of image attachments to include when sharing to the fediverse.',
9096
'activitypub'
9197
) }
98+
__next40pxDefaultSize
99+
__nextHasNoMarginBottom
92100
/>
93101

94102
<RadioControl

0 commit comments

Comments
 (0)