Page Builder: Live Composer – drag and drop website builder (visual front end site editor) - Version 1.4.6

Version Description

  • June 18 2019 =
  • Fixed broken posts listing on the home page when WP Admin > Settings > Front Page isn't set.
Download this release

Release Info

Developer LiveComposer
Plugin Icon 128x128 Page Builder: Live Composer – drag and drop website builder (visual front end site editor)
Version 1.4.6
Comparing to
See all releases

Code changes from version 1.4.5 to 1.4.6

ds-live-composer.php CHANGED
@@ -1,10 +1,10 @@
1
  <?php
2
  /**
3
- * Plugin Name: Page Builder: Live Composer - drag and drop website builder (visual front end site editor)
4
  * Plugin URI: https://www.livecomposerplugin.com
5
- * Description: Front-end page builder for WordPress with drag and drop editing. Build PRO responsive websites and landing pages. Visually customize any page element.
6
  * Author: Live Composer Team
7
- * Version: 1.4.5
8
  * Author URI: https://livecomposerplugin.com
9
  * License: GPL3
10
  * License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -41,7 +41,7 @@ if ( ! defined( 'DS_LIVE_COMPOSER_VER' ) && version_compare( PHP_VERSION, '5.3.0
41
  * Constants
42
  */
43
 
44
- define( 'DS_LIVE_COMPOSER_VER', '1.4.5' );
45
 
46
  define( 'DS_LIVE_COMPOSER_SHORTNAME', __( 'Live Composer', 'live-composer-page-builder' ) );
47
  define( 'DS_LIVE_COMPOSER_BASENAME', plugin_basename( __FILE__ ) );
1
  <?php
2
  /**
3
+ * Plugin Name: Page Builder: Live Composer
4
  * Plugin URI: https://www.livecomposerplugin.com
5
+ * Description: Page builder for WordPress with drag and drop header/footer editing.
6
  * Author: Live Composer Team
7
+ * Version: 1.4.6
8
  * Author URI: https://livecomposerplugin.com
9
  * License: GPL3
10
  * License URI: https://www.gnu.org/licenses/gpl-2.0.html
41
  * Constants
42
  */
43
 
44
+ define( 'DS_LIVE_COMPOSER_VER', '1.4.6' );
45
 
46
  define( 'DS_LIVE_COMPOSER_SHORTNAME', __( 'Live Composer', 'live-composer-page-builder' ) );
47
  define( 'DS_LIVE_COMPOSER_BASENAME', plugin_basename( __FILE__ ) );
includes/archive-templates.php CHANGED
@@ -1,5 +1,4 @@
1
  <?php
2
-
3
  /**
4
  * Table of Contents
5
  *
@@ -7,8 +6,6 @@
7
  * dslc_archive_template_init ( Register options )
8
  * dslc_archive_template_404_fix ( Fixes 404 on pagination caused when regular WP query has no more post )
9
  */
10
-
11
-
12
  // Prevent direct access to the file.
13
  if ( ! defined( 'ABSPATH' ) ) {
14
  header( 'HTTP/1.0 403 Forbidden' );
@@ -23,7 +20,6 @@ if ( ! defined( 'ABSPATH' ) ) {
23
  * @since 1.0
24
  */
25
  function dslc_template_redirects( $template ) {
26
-
27
  global $post;
28
 
29
  $template_custom = '';
@@ -53,6 +49,8 @@ function dslc_template_redirects( $template ) {
53
 
54
  } elseif ( is_search() && ! $post ) {
55
  $template_custom = dslc_page_not_found_template_redirect( $template );
 
 
56
  }
57
 
58
  // Return custom or default template.
1
  <?php
 
2
  /**
3
  * Table of Contents
4
  *
6
  * dslc_archive_template_init ( Register options )
7
  * dslc_archive_template_404_fix ( Fixes 404 on pagination caused when regular WP query has no more post )
8
  */
 
 
9
  // Prevent direct access to the file.
10
  if ( ! defined( 'ABSPATH' ) ) {
11
  header( 'HTTP/1.0 403 Forbidden' );
20
  * @since 1.0
21
  */
22
  function dslc_template_redirects( $template ) {
 
23
  global $post;
24
 
25
  $template_custom = '';
49
 
50
  } elseif ( is_search() && ! $post ) {
51
  $template_custom = dslc_page_not_found_template_redirect( $template );
52
+ } elseif ( is_front_page() && ! get_option( 'page_on_front' ) ) {
53
+ $template_custom = dslc_archive_template_redirect( $template );
54
  }
55
 
56
  // Return custom or default template.
includes/css-generation.php CHANGED
@@ -105,7 +105,7 @@ function dslc_custom_css() {
105
  }
106
 
107
  // If archive, load template?
108
- if ( is_archive() && $post && ! is_author() && ! is_search() ) {
109
  $post_type = get_post_type();
110
 
111
  $template_id = dslc_get_archive_template_by_pt( $post_type );
105
  }
106
 
107
  // If archive, load template?
108
+ if ( is_archive() && $post && ! is_author() && ! is_search() || is_front_page() && ! get_option( 'page_on_front' ) ) {
109
  $post_type = get_post_type();
110
 
111
  $template_id = dslc_get_archive_template_by_pt( $post_type );
includes/display-functions.php CHANGED
@@ -555,7 +555,7 @@ function dslc_filter_content( $content ) {
555
  $cache = new DSLC_Cache( 'html' );
556
  $cache_id = $curr_id;
557
 
558
- if ( is_archive() ) {
559
  $post_type_slug = get_post_type();
560
  $template_id = dslc_get_archive_template_by_pt( $post_type_slug );
561
  $cache_id = $template_id;
@@ -593,7 +593,7 @@ function dslc_filter_content( $content ) {
593
  // 2) Proceed if in a WordPress loop ( https://codex.wordpress.org/Function_Reference/in_the_loop )
594
  // 3) Proceed if global var $dslc_should_filter is true
595
  // Irrelevant of the other 3 proceed if archives, search or 404 page.
596
- if ( ( $curr_id == $real_id && in_the_loop() && $dslc_should_filter ) || ( is_archive() && $dslc_should_filter ) || is_author() || is_search() || is_404() ) {
597
 
598
  // Variables that are used throughout the function.
599
  $composer_wrapper_before = '';
@@ -637,7 +637,7 @@ function dslc_filter_content( $content ) {
637
  $showing_404_page = dslc_postid_is_404_template( $post->ID );
638
 
639
  // If currently showing a category archive page.
640
- if ( is_archive() && ! $showing_404_page && ! is_author() && ! is_search() ) {
641
 
642
  $post_type_slug = get_post_type();
643
  $post_id = $post->ID;
555
  $cache = new DSLC_Cache( 'html' );
556
  $cache_id = $curr_id;
557
 
558
+ if ( is_archive() || is_front_page() && ! get_option( 'page_on_front' ) ) {
559
  $post_type_slug = get_post_type();
560
  $template_id = dslc_get_archive_template_by_pt( $post_type_slug );
561
  $cache_id = $template_id;
593
  // 2) Proceed if in a WordPress loop ( https://codex.wordpress.org/Function_Reference/in_the_loop )
594
  // 3) Proceed if global var $dslc_should_filter is true
595
  // Irrelevant of the other 3 proceed if archives, search or 404 page.
596
+ if ( ( $curr_id == $real_id && in_the_loop() && $dslc_should_filter ) || ( is_archive() && $dslc_should_filter ) || is_author() || is_search() || is_404() || is_front_page() && ! get_option( 'page_on_front' ) ) {
597
 
598
  // Variables that are used throughout the function.
599
  $composer_wrapper_before = '';
637
  $showing_404_page = dslc_postid_is_404_template( $post->ID );
638
 
639
  // If currently showing a category archive page.
640
+ if ( is_archive() && ! $showing_404_page && ! is_author() && ! is_search() || is_front_page() && ! get_option( 'page_on_front' ) ) {
641
 
642
  $post_type_slug = get_post_type();
643
  $post_id = $post->ID;
readme.txt CHANGED
@@ -1,12 +1,12 @@
1
- === Page Builder: Live Composer – drag and drop website builder ===
2
  Contributors: LiveComposer
3
  Tags: page builder, landing page builder, frontend page builder, drag and drop page builder, website builder
4
  Requires at least: 4.7
5
  Tested up to: 5.2
6
- Stable tag: 1.4.5
7
  License: GPLv3
8
 
9
- Front-end page builder for WordPress with drag and drop editing. Build PRO responsive websites and landing pages. Visually customize any page element.
10
 
11
  == Description ==
12
 
@@ -58,6 +58,9 @@ In most of the cases, this is because the homepage is not a real WordPress page,
58
  * 🦊 [Check out our WooCommerce Page Builder Extension](https://livecomposerplugin.com/downloads/woocommerce-page-builder/?utm_source=wp-admin&utm_medium=changelog&utm_campaign=woo-integration)
59
  * 👀 [We keep updating and improving our extensions pack](https://livecomposerplugin.com/downloads/extensions/?utm_source=wp-admin&utm_medium=changelog&utm_campaign=add-ons) ACF + CPT + MegaMenu + 9 more add-ons.
60
 
 
 
 
61
  = 1.4.5 - June 14 2019 =
62
  * Code clean-up and improvements.
63
 
1
+ === Page Builder: Live Composer ===
2
  Contributors: LiveComposer
3
  Tags: page builder, landing page builder, frontend page builder, drag and drop page builder, website builder
4
  Requires at least: 4.7
5
  Tested up to: 5.2
6
+ Stable tag: 1.4.6
7
  License: GPLv3
8
 
9
+ Page builder for WordPress with drag and drop header/footer editing, responsive settings, and animations. Compatible with Gutenberg block editor.
10
 
11
  == Description ==
12
 
58
  * 🦊 [Check out our WooCommerce Page Builder Extension](https://livecomposerplugin.com/downloads/woocommerce-page-builder/?utm_source=wp-admin&utm_medium=changelog&utm_campaign=woo-integration)
59
  * 👀 [We keep updating and improving our extensions pack](https://livecomposerplugin.com/downloads/extensions/?utm_source=wp-admin&utm_medium=changelog&utm_campaign=add-ons) ACF + CPT + MegaMenu + 9 more add-ons.
60
 
61
+ = 1.4.6 - June 18 2019 =
62
+ * Fixed broken posts listing on the home page when WP Admin > Settings > Front Page isn't set.
63
+
64
  = 1.4.5 - June 14 2019 =
65
  * Code clean-up and improvements.
66