The Post Grid - Version 4.0.3

Version Description

  • Fixed: HTML tags not allowed in Excerpt
Download this release

Release Info

Developer techlabpro1
Plugin Icon 128x128 The Post Grid
Version 4.0.3
Comparing to
See all releases

Code changes from version 4.0.2 to 4.0.3

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
  Tags: post grid, content grid, post display, post slider, post grid elementor addon
5
  Requires at least: 4.5
6
  Tested up to: 5.9.3
7
- Stable tag: 4.0.2
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -170,6 +170,9 @@ We introduce Single Page Builder with Elementor Page builder. You can easily arr
170
 
171
  == Changelog ==
172
 
 
 
 
173
  = 4.0.2 =
174
  * Fixed: Elementor block responsive issue fix
175
 
4
  Tags: post grid, content grid, post display, post slider, post grid elementor addon
5
  Requires at least: 4.5
6
  Tested up to: 5.9.3
7
+ Stable tag: 4.0.3
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
170
 
171
  == Changelog ==
172
 
173
+ = 4.0.3 =
174
+ * Fixed: HTML tags not allowed in Excerpt
175
+
176
  = 4.0.2 =
177
  * Fixed: Elementor block responsive issue fix
178
 
app/Controllers/Admin/UpgradeController.php CHANGED
@@ -13,7 +13,7 @@ class UpgradeController {
13
  $text = esc_html__( 'The Post Grid Pro', 'the-post-grid' );
14
  $link_pro = 'https://www.radiustheme.com/downloads/the-post-grid-pro-for-wordpress/';
15
 
16
- printf( '<div class="%1$s"><p><a target="_blank" href="%2$s"><strong>The Post Grid Pro</strong></a> is not working, You need to update <strong>%3$s</strong> version to 4.0.0 or more to get the pro features.</p></div>',
17
  $class,
18
  $link_pro,
19
  $text );
13
  $text = esc_html__( 'The Post Grid Pro', 'the-post-grid' );
14
  $link_pro = 'https://www.radiustheme.com/downloads/the-post-grid-pro-for-wordpress/';
15
 
16
+ printf( '<div class="%1$s"><p><a target="_blank" href="%2$s"><strong>The Post Grid Pro</strong></a> is not working, You need to update <strong>%3$s</strong> version to 5.0.0 or more to get the pro features.</p></div>',
17
  $class,
18
  $link_pro,
19
  $text );
app/Helpers/Fns.php CHANGED
@@ -779,12 +779,13 @@ class Fns {
779
  }
780
 
781
  $more = $data['excerpt_more_text'];
782
- $excerpt = preg_replace( '`\[[^\]]*\]`', '', wp_strip_all_tags($defaultExcerpt) );
783
  $excerpt = strip_shortcodes( $excerpt );
784
  $excerpt = preg_replace( '`[[^]]*]`', '', $excerpt );
785
  $excerpt = str_replace( '…', '', $excerpt );
 
786
  if ( $limit ) {
787
- $excerpt = wp_filter_nohtml_kses( $excerpt );
788
  if ( $type == "word" ) {
789
  $limit = $limit + 1;
790
  $rawExcerpt = $excerpt;
779
  }
780
 
781
  $more = $data['excerpt_more_text'];
782
+ $excerpt = preg_replace( '`\[[^\]]*\]`', '', $defaultExcerpt );
783
  $excerpt = strip_shortcodes( $excerpt );
784
  $excerpt = preg_replace( '`[[^]]*]`', '', $excerpt );
785
  $excerpt = str_replace( '…', '', $excerpt );
786
+
787
  if ( $limit ) {
788
+ $excerpt = wp_strip_all_tags( $excerpt );
789
  if ( $type == "word" ) {
790
  $limit = $limit + 1;
791
  $rawExcerpt = $excerpt;
assets/js/admin.js CHANGED
@@ -483,7 +483,8 @@
483
  }
484
 
485
  var pagination = $("#rt-tpg-pagination").is(':checked');
486
- if (pagination && (isGrid || isList || isIsotope)) {
 
487
  $(".field-holder.pagination-item").show();
488
  } else if (pagination && (isLOffset)) {
489
  $(".field-holder.posts-per-page").show();
@@ -493,6 +494,8 @@
493
  }
494
  }
495
 
 
 
496
  function taxonomyFilterEffect() {
497
  if ($("#tgp_filter-_taxonomy_filter").is(':checked')) {
498
  $(".field-holder.sc-tpg-grid-filter").show();
483
  }
484
 
485
  var pagination = $("#rt-tpg-pagination").is(':checked');
486
+
487
+ if (pagination && ! (isCarousel || isWc || isWcIsotope || isWcCarousel)) {
488
  $(".field-holder.pagination-item").show();
489
  } else if (pagination && (isLOffset)) {
490
  $(".field-holder.posts-per-page").show();
494
  }
495
  }
496
 
497
+
498
+
499
  function taxonomyFilterEffect() {
500
  if ($("#tgp_filter-_taxonomy_filter").is(':checked')) {
501
  $(".field-holder.sc-tpg-grid-filter").show();
languages/the-post-grid.pot CHANGED
@@ -6,7 +6,7 @@ msgstr ""
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
9
- "POT-Creation-Date: 2022-05-13 11:49+0000\n"
10
  "X-Poedit-Basepath: ..\n"
11
  "X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
12
  "X-Poedit-SearchPath-0: .\n"
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
9
+ "POT-Creation-Date: 2022-05-16 11:20+0000\n"
10
  "X-Poedit-Basepath: ..\n"
11
  "X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
12
  "X-Poedit-SearchPath-0: .\n"
the-post-grid.php CHANGED
@@ -5,7 +5,7 @@
5
  * Plugin URI: http://demo.radiustheme.com/wordpress/plugins/the-post-grid/
6
  * Description: Fast & Easy way to display WordPress post in Grid, List & Isotope view ( filter by category, tag, author..) without a single line of coding.
7
  * Author: RadiusTheme
8
- * Version: 4.0.2
9
  * Text Domain: the-post-grid
10
  * Domain Path: /languages
11
  * Author URI: https://radiustheme.com/
5
  * Plugin URI: http://demo.radiustheme.com/wordpress/plugins/the-post-grid/
6
  * Description: Fast & Easy way to display WordPress post in Grid, List & Isotope view ( filter by category, tag, author..) without a single line of coding.
7
  * Author: RadiusTheme
8
+ * Version: 4.0.3
9
  * Text Domain: the-post-grid
10
  * Domain Path: /languages
11
  * Author URI: https://radiustheme.com/