Content Views – Post Grid & List for WordPress - Version 2.1.3.1

Version Description

  • 2019/01/31 =
  • Fix: Showing full post content issue caused by last version
Download this release

Release Info

Developer PT Guy
Plugin Icon 128x128 Content Views – Post Grid & List for WordPress
Version 2.1.3.1
Comparing to
See all releases

Code changes from version 2.1.3 to 2.1.3.1

Files changed (3) hide show
  1. README.txt +4 -1
  2. content-views.php +3 -3
  3. includes/compatibility.php +9 -4
README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.contentviewspro.com/?utm_source=wordpress&utm_medium=pl
4
  Tags: post grid, grid plugin, grid, latest post, display post, post, page, category, responsive, list, thumbnail
5
  Requires at least: 3.3
6
  Tested up to: 5.0.3
7
- Stable tag: 2.1.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -163,6 +163,9 @@ If you are using "Your latest posts" as home page, you should paste this code `<
163
 
164
  == Changelog ==
165
 
 
 
 
166
  = 2.1.3 - 2019/01/29 =
167
  * Security improvement: Prevent direct access to plugin files
168
  * Compatibility: Ensure the full post content (created by "Beaver Builder" plugin) in View is as same as in single post page
4
  Tags: post grid, grid plugin, grid, latest post, display post, post, page, category, responsive, list, thumbnail
5
  Requires at least: 3.3
6
  Tested up to: 5.0.3
7
+ Stable tag: 2.1.3.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
163
 
164
  == Changelog ==
165
 
166
+ = 2.1.3.1 - 2019/01/31 =
167
+ * Fix: Showing full post content issue caused by last version
168
+
169
  = 2.1.3 - 2019/01/29 =
170
  * Security improvement: Prevent direct access to plugin files
171
  * Compatibility: Ensure the full post content (created by "Beaver Builder" plugin) in View is as same as in single post page
content-views.php CHANGED
@@ -10,8 +10,8 @@
10
  * Plugin Name: Content Views
11
  * Plugin URI: http://wordpress.org/plugins/content-views-query-and-display-post-page/
12
  * Description: Query and display <strong>posts, pages</strong> in awesome layouts (<strong>grid, scrollable list, collapsible list</strong>) easier than ever, without coding!
13
- * Version: 2.1.3
14
- * Author: CVSOFT LLC
15
  * Author URI: http://profiles.wordpress.org/pt-guy
16
  * Text Domain: content-views-query-and-display-post-page
17
  * License: GPL-2.0+
@@ -25,7 +25,7 @@ if ( !defined( 'ABSPATH' ) ) {
25
  }
26
 
27
  // Define Constant
28
- define( 'PT_CV_VERSION', '2.1.3' );
29
  define( 'PT_CV_FILE', __FILE__ );
30
  define( 'PT_CV_PATH', plugin_dir_path( __FILE__ ) );
31
  include_once( PT_CV_PATH . 'includes/defines.php' );
10
  * Plugin Name: Content Views
11
  * Plugin URI: http://wordpress.org/plugins/content-views-query-and-display-post-page/
12
  * Description: Query and display <strong>posts, pages</strong> in awesome layouts (<strong>grid, scrollable list, collapsible list</strong>) easier than ever, without coding!
13
+ * Version: 2.1.3.1
14
+ * Author: ContentViews
15
  * Author URI: http://profiles.wordpress.org/pt-guy
16
  * Text Domain: content-views-query-and-display-post-page
17
  * License: GPL-2.0+
25
  }
26
 
27
  // Define Constant
28
+ define( 'PT_CV_VERSION', '2.1.3.1' );
29
  define( 'PT_CV_FILE', __FILE__ );
30
  define( 'PT_CV_PATH', plugin_dir_path( __FILE__ ) );
31
  include_once( PT_CV_PATH . 'includes/defines.php' );
includes/compatibility.php CHANGED
@@ -131,10 +131,15 @@ function cv_comp_plugin_cornerstone_builder() {
131
  */
132
  add_filter( 'pt_cv_field_content_full', 'cv_comp_plugin_beaverbuilder', 9, 3 );
133
  function cv_comp_plugin_beaverbuilder( $content, $fargs, $post ) {
134
- if ( class_exists( 'FLBuilder' ) && method_exists( 'FLBuilder', 'render_content_by_id' ) ) {
135
- ob_start();
136
- FLBuilder::render_content_by_id( $post->ID );
137
- $content = ob_get_clean();
 
 
 
 
 
138
  }
139
 
140
  return $content;
131
  */
132
  add_filter( 'pt_cv_field_content_full', 'cv_comp_plugin_beaverbuilder', 9, 3 );
133
  function cv_comp_plugin_beaverbuilder( $content, $fargs, $post ) {
134
+ if ( class_exists( 'FLBuilderModel' ) && method_exists( 'FLBuilderModel', 'is_builder_enabled' ) ) {
135
+ $enabled = FLBuilderModel::is_builder_enabled( $post->ID );
136
+ if ( $enabled ) {
137
+ if ( class_exists( 'FLBuilder' ) && method_exists( 'FLBuilder', 'render_content_by_id' ) ) {
138
+ ob_start();
139
+ FLBuilder::render_content_by_id( $post->ID );
140
+ $content = ob_get_clean();
141
+ }
142
+ }
143
  }
144
 
145
  return $content;