Skip to content

Commit

Permalink
new: Added prefix in editor client config
Browse files Browse the repository at this point in the history
  • Loading branch information
alecszaharia committed Aug 17, 2023
1 parent cbaa6eb commit c93a517
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions editor/editor/editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']
];
'prefix' => 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 );

Expand Down

0 comments on commit c93a517

Please sign in to comment.