Page Builder: PageLayer – Drag and Drop website builder - Version 1.6.9

Version Description

(June 02, 2022) = * [Bug-Fix] After the previous version, in some cases, the add section was not working properly. This is fixed.

Download this release

Release Info

Developer pagelayer
Plugin Icon 128x128 Page Builder: PageLayer – Drag and Drop website builder
Version 1.6.9
Comparing to
See all releases

Code changes from version 1.6.8 to 1.6.9

Files changed (4) hide show
  1. init.php +1 -1
  2. main/ajax.php +16 -22
  3. pagelayer.php +1 -1
  4. readme.txt +4 -1
init.php CHANGED
@@ -5,7 +5,7 @@ if (!defined('ABSPATH')) exit;
5
 
6
  define('PAGELAYER_BASE', plugin_basename(PAGELAYER_FILE));
7
  define('PAGELAYER_PRO_BASE', 'pagelayer-pro/pagelayer-pro.php');
8
- define('PAGELAYER_VERSION', '1.6.8');
9
  define('PAGELAYER_DIR', dirname(PAGELAYER_FILE));
10
  define('PAGELAYER_SLUG', 'pagelayer');
11
  define('PAGELAYER_URL', plugins_url('', PAGELAYER_FILE));
5
 
6
  define('PAGELAYER_BASE', plugin_basename(PAGELAYER_FILE));
7
  define('PAGELAYER_PRO_BASE', 'pagelayer-pro/pagelayer-pro.php');
8
+ define('PAGELAYER_VERSION', '1.6.9');
9
  define('PAGELAYER_DIR', dirname(PAGELAYER_FILE));
10
  define('PAGELAYER_SLUG', 'pagelayer');
11
  define('PAGELAYER_URL', plugins_url('', PAGELAYER_FILE));
main/ajax.php CHANGED
@@ -597,13 +597,15 @@ function pagelayer_get_section_shortcodes(){
597
  $post_id = (int) $_REQUEST['postID'];
598
 
599
  if(!empty($post_id)){
600
- $GLOBALS['wp_query'] = new WP_Query([
601
- 'post_type' => 'any',
602
- 'post__in' => array($post_id),
603
- ]);
604
-
605
- if ( ! empty( $GLOBALS['wp_query']->post ) ) {
606
- $GLOBALS['post'] = $GLOBALS['wp_query']->post;
 
 
607
  }
608
  }
609
  }
@@ -722,16 +724,11 @@ function pagelayer_fetch_primary_menu(){
722
  $postID = (int) $_REQUEST['postID'];
723
 
724
  // To on live mode
725
- if(!empty($postID)){
726
- $GLOBALS['wp_query'] = new WP_Query([
727
- 'post_type' => 'any',
728
- 'post__in' => array($postID),
729
- ]);
730
-
731
- if ( ! empty( $GLOBALS['wp_query']->post ) ) {
732
- $GLOBALS['post'] = $GLOBALS['wp_query']->post;
733
- }
734
- }
735
 
736
  // Load short
737
  pagelayer_load_shortcodes();
@@ -847,15 +844,12 @@ function pagelayer_apply_revision(){
847
  }
848
 
849
  // Need to make the reviews post global
 
850
  $GLOBALS['wp_query'] = new WP_Query([
851
- 'post_type' => 'any',
852
  'post__in' => array($parID),
853
  ]);
854
 
855
- if ( ! empty( $GLOBALS['wp_query']->post ) ) {
856
- $GLOBALS['post'] = $GLOBALS['wp_query']->post;
857
- }
858
-
859
  // Need to reload the shortcodes
860
  pagelayer_load_shortcodes();
861
 
597
  $post_id = (int) $_REQUEST['postID'];
598
 
599
  if(!empty($post_id)){
600
+ $post = get_post( $post_id );
601
+ // Need to make the reviews post global
602
+ if ( !empty( $post ) ) {
603
+ $GLOBALS['post'] = $post;
604
+
605
+ $GLOBALS['wp_query'] = new WP_Query([
606
+ 'post_type' => $GLOBALS['post']->post_type,
607
+ 'post__in' => array($post_id),
608
+ ]);
609
  }
610
  }
611
  }
724
  $postID = (int) $_REQUEST['postID'];
725
 
726
  // To on live mode
727
+ $GLOBALS['post'] = get_post($postID);
728
+ $GLOBALS['wp_query'] = new WP_Query([
729
+ 'post_type' => $GLOBALS['post']->post_type,
730
+ 'post__in' => array($postID),
731
+ ]);
 
 
 
 
 
732
 
733
  // Load short
734
  pagelayer_load_shortcodes();
844
  }
845
 
846
  // Need to make the reviews post global
847
+ $GLOBALS['post'] = $post;
848
  $GLOBALS['wp_query'] = new WP_Query([
849
+ 'post_type' => $GLOBALS['post']->post_type,
850
  'post__in' => array($parID),
851
  ]);
852
 
 
 
 
 
853
  // Need to reload the shortcodes
854
  pagelayer_load_shortcodes();
855
 
pagelayer.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: PageLayer
4
  Plugin URI: http://wordpress.org/plugins/pagelayer/
5
  Description: PageLayer is a WordPress page builder plugin. Its very easy to use and very light on the browser.
6
- Version: 1.6.8
7
  Author: Pagelayer Team
8
  Author URI: https://pagelayer.com/
9
  License: LGPL v2.1
3
  Plugin Name: PageLayer
4
  Plugin URI: http://wordpress.org/plugins/pagelayer/
5
  Description: PageLayer is a WordPress page builder plugin. Its very easy to use and very light on the browser.
6
+ Version: 1.6.9
7
  Author: Pagelayer Team
8
  Author URI: https://pagelayer.com/
9
  License: LGPL v2.1
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: page builder, editor, drag and drop, form builder, landing page, responsiv
4
  Requires at least: 4.7
5
  Tested up to: 6.0
6
  Requires PHP: 5.5
7
- Stable tag: 1.6.8
8
  License: LGPL v2.1
9
  License URI: http://www.gnu.org/licenses/lgpl-2.1.html
10
 
@@ -127,6 +127,9 @@ Do you have questions related to Pagelayer? Use the following links :
127
 
128
  == Changelog ==
129
 
 
 
 
130
  = 1.6.8 (May 25, 2022) =
131
  * [Feature] Added Customizer settings to set global styles for elements. Also you can set different global styles for each post type.
132
  * [Feature] Added Global Color and Typography palette in customizer. Now you can set Global Color and Typography for each element.
4
  Requires at least: 4.7
5
  Tested up to: 6.0
6
  Requires PHP: 5.5
7
+ Stable tag: 1.6.9
8
  License: LGPL v2.1
9
  License URI: http://www.gnu.org/licenses/lgpl-2.1.html
10
 
127
 
128
  == Changelog ==
129
 
130
+ = 1.6.9 (June 02, 2022) =
131
+ * [Bug-Fix] After the previous version, in some cases, the add section was not working properly. This is fixed.
132
+
133
  = 1.6.8 (May 25, 2022) =
134
  * [Feature] Added Customizer settings to set global styles for elements. Also you can set different global styles for each post type.
135
  * [Feature] Added Global Color and Typography palette in customizer. Now you can set Global Color and Typography for each element.