From 685ce1e42f74ca795425489c03d9c2fb665e182c Mon Sep 17 00:00:00 2001 From: Zaharia Alexandru Date: Thu, 17 Aug 2023 15:05:17 +0300 Subject: [PATCH] new: Added prefix in editor client config issue: https://github.com/bagrinsergiu/blox-editor/issues/23680 --- editor/editor/editor.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/editor/editor/editor.php b/editor/editor/editor.php index a69667d13c..6a324fb28f 100755 --- a/editor/editor/editor.php +++ b/editor/editor/editor.php @@ -82,13 +82,14 @@ public function getClientConfig( $editorConfig, $context ) { } $config = [ - 'hash' => wp_create_nonce( Brizy_Editor_API::nonce ), - 'editorVersion' => BRIZY_EDITOR_VERSION, - 'url' => set_url_scheme( admin_url( 'admin-ajax.php' ) ), - 'actions' => $this->getApiActions(), - 'pageId' => $this->post->getWpPostId(), - 'collectionTypes' => $editorConfig['wp']['postLoopSources'] - ]; + 'pluginPrefixprefix' => Brizy_Editor::prefix(), + 'hash' => wp_create_nonce( Brizy_Editor_API::nonce ), + 'editorVersion' => BRIZY_EDITOR_VERSION, + 'url' => set_url_scheme( admin_url( 'admin-ajax.php' ) ), + 'actions' => $this->getApiActions(), + 'pageId' => $this->post->getWpPostId(), + 'collectionTypes' => $editorConfig['wp']['postLoopSources'] + ]; $config = $this->getApiConfigFields( $config, $context );