Skip to content

Commit 3ace507

Browse files
committed
fix wpcs
1 parent c67113f commit 3ace507

File tree

1 file changed

+22
-13
lines changed

1 file changed

+22
-13
lines changed

inc/Services/Editor.php

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -204,19 +204,28 @@ public function admin_editor_script(): void {
204204
'theme-admin-editor-script',
205205
'const BFFEditorSettings = ' . wp_json_encode(
206206
[
207-
'disableAllBlocksStyles' => apply_filters( 'bff/editor/disable_all_blocks_styles', [
208-
'core/separator',
209-
'core/quote',
210-
'core/pullquote',
211-
'core/table',
212-
'core/image',
213-
] ),
214-
'disabledBlocksStyles' => apply_filters( 'bff/editor/disabled_blocks_styles', [
215-
// 'core/button' => [ 'outline' ]
216-
] ),
217-
'allowedBlocksVariations' => apply_filters( 'bff/editor/allowed_blocks_variations', [
218-
'core/embed' => [ 'youtube', 'vimeo', 'dailymotion' ],
219-
] ),
207+
'disableAllBlocksStyles' => apply_filters(
208+
'bff_editor_disable_all_blocks_styles',
209+
[
210+
'core/separator',
211+
'core/quote',
212+
'core/pullquote',
213+
'core/table',
214+
'core/image',
215+
]
216+
),
217+
'disabledBlocksStyles' => apply_filters(
218+
'bff_editor_disabled_blocks_styles',
219+
[
220+
// 'core/button' => [ 'outline' ]
221+
]
222+
),
223+
'allowedBlocksVariations' => apply_filters(
224+
'bff_editor_allowed_blocks_variations',
225+
[
226+
'core/embed' => [ 'youtube', 'vimeo', 'dailymotion' ],
227+
]
228+
),
220229
]
221230
),
222231
'before'

0 commit comments

Comments
 (0)