Skip to content

Commit c67113f

Browse files
committed
fix phpcs
1 parent d0e3877 commit c67113f

File tree

1 file changed

+21
-15
lines changed

1 file changed

+21
-15
lines changed

inc/Services/Editor.php

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -200,21 +200,27 @@ public function admin_editor_script(): void {
200200
true
201201
);
202202

203-
$this->assets_tools->add_inline_script( 'theme-admin-editor-script', 'const BFFEditorSettings = ' . json_encode( array(
204-
'disableAllBlocksStyles' => apply_filters( 'bff/editor/disable_all_blocks_styles', [
205-
'core/separator',
206-
'core/quote',
207-
'core/pullquote',
208-
'core/table',
209-
'core/image'
210-
] ),
211-
'disabledBlocksStyles' => apply_filters( 'bff/editor/disabled_blocks_styles', [
212-
// 'core/button' => [ 'outline' ]
213-
] ),
214-
'allowedBlocksVariations' => apply_filters( 'bff/editor/allowed_blocks_variations', [
215-
'core/embed' => [ 'youtube', 'vimeo', 'dailymotion' ],
216-
] ),
217-
) ), 'before' );
203+
$this->assets_tools->add_inline_script(
204+
'theme-admin-editor-script',
205+
'const BFFEditorSettings = ' . wp_json_encode(
206+
[
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+
] ),
220+
]
221+
),
222+
'before'
223+
);
218224

219225
$this->assets_tools->enqueue_script( 'theme-admin-editor-script' );
220226
}

0 commit comments

Comments
 (0)