Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layout template not loading corect page in Brizy WP #2024

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion brizy.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
$_SERVER['HTTPS'] = 'on';
}

define('BRIZY_DEVELOPMENT', false );
define('BRIZY_DEVELOPMENT', true );
define('BRIZY_LOG', false );
define('BRIZY_VERSION', '2.6.3');
define('BRIZY_MINIMUM_PRO_VERSION', '2.4.15');
Expand Down
12 changes: 6 additions & 6 deletions editor/editor/editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -402,10 +402,10 @@ private function getApiConfigFields( $config, $context ) {
'fileUrl' => home_url( '?' . Brizy_Editor::prefix( '_attachment' ) . '=' ),
],
'templates' => [
'layoutsChunkUrl' => Brizy_Config::LAYOUTS_CHUNK_URL,
'layoutsChunkUrl' => 'https://phplaravel-1109775-4184176.cloudwaysapps.com/api/get-layouts-chunk',
'layoutsPagesUrl' => Brizy_Config::LAYOUTS_PAGES_URL,
'layoutDataUrl' => Brizy_Config::LAYOUTS_PAGE_DATA_URL,
'blocksChunkUrl' => Brizy_Config::BLOCKS_CHUNK_URL,
'layoutDataUrl' => 'https://phplaravel-1109775-4184176.cloudwaysapps.com/api/get-layouts-page',
'blocksChunkUrl' => 'https://phplaravel-1109775-4184176.cloudwaysapps.com/api/get-kit-collections-chunk',
'blocksKitsUrl' => Brizy_Config::BLOCKS_KITS_URL,
'blocksDataUrl' => Brizy_Config::BLOCKS_DATA_URL,
'popupsChunkUrl' => Brizy_Config::POPUPS_CHUNK_URL,
Expand Down Expand Up @@ -1003,10 +1003,10 @@ private function addGlobalBlocksData( $config ) {
*/
private function get_page_attachments() {
global $wpdb;
$query = $wpdb->prepare( "SELECT
$query = $wpdb->prepare( "SELECT
pm.*
FROM
{$wpdb->prefix}postmeta pm
FROM
{$wpdb->prefix}postmeta pm
JOIN {$wpdb->prefix}postmeta pm2 ON pm2.post_id=pm.post_id AND pm2.meta_key='brizy_post_uid' AND pm2.meta_value=%s
WHERE pm.meta_key='brizy_attachment_uid'
GROUP BY pm.post_id", $this->post->getUid() );
Expand Down