Post Grid - Version 2.1.19

Version Description

  • 2022-03-16 - fix - HTML string output for category, tags, content, share button issue fixed.
Download this release

Release Info

Developer pickplugins
Plugin Icon 128x128 Post Grid
Version 2.1.19
Comparing to
See all releases

Code changes from version 2.1.18 to 2.1.19

includes/layout-elements/simple-job-board/layout-elements.php CHANGED
@@ -285,7 +285,7 @@ function post_grid_layout_element_simplejobboard_location($args){
285
  $term_name = isset($term->name) ? $term->name : '';
286
  $term_link = get_term_link($term_id);
287
 
288
- $categories_html .= '<a target="'.esc_attr($link_target).'" href="'.esc_url_raw($term_link).'">'.esc_html($term_name).'</a>';
289
  if( $i+1 < $max_term_limit){ $categories_html .= $separator;}
290
 
291
  $i++;
@@ -618,7 +618,7 @@ function post_grid_layout_element_simplejobboard_category($args){
618
  $term_name = isset($term->name) ? $term->name : '';
619
  $term_link = get_term_link($term_id);
620
 
621
- $categories_html .= '<a target="'.esc_attr($link_target).'" href="'.esc_url_raw($term_link).'">'.esc_html($term_name).'</a>';
622
  if( $i+1 < $max_term_limit){ $categories_html .= $separator;}
623
 
624
  $i++;
@@ -952,7 +952,7 @@ function post_grid_layout_element_simplejobboard_job_type($args){
952
  $term_name = isset($term->name) ? $term->name : '';
953
  $term_link = get_term_link($term_id);
954
 
955
- $categories_html .= '<a target="'.esc_attr($link_target).'" href="'.esc_url_raw($term_link).'">'.esc_html($term_name).'</a>';
956
  if( $i+1 < $max_term_limit){ $categories_html .= $separator;}
957
 
958
  $i++;
285
  $term_name = isset($term->name) ? $term->name : '';
286
  $term_link = get_term_link($term_id);
287
 
288
+ $categories_html .= '<a target="'.esc_attr($link_target).'" href="'.esc_url($term_link).'">'.esc_html($term_name).'</a>';
289
  if( $i+1 < $max_term_limit){ $categories_html .= $separator;}
290
 
291
  $i++;
618
  $term_name = isset($term->name) ? $term->name : '';
619
  $term_link = get_term_link($term_id);
620
 
621
+ $categories_html .= '<a target="'.esc_attr($link_target).'" href="'.esc_url($term_link).'">'.esc_html($term_name).'</a>';
622
  if( $i+1 < $max_term_limit){ $categories_html .= $separator;}
623
 
624
  $i++;
952
  $term_name = isset($term->name) ? $term->name : '';
953
  $term_link = get_term_link($term_id);
954
 
955
+ $categories_html .= '<a target="'.esc_attr($link_target).'" href="'.esc_url($term_link).'">'.esc_html($term_name).'</a>';
956
  if( $i+1 < $max_term_limit){ $categories_html .= $separator;}
957
 
958
  $i++;
includes/menu/settings-old.php CHANGED
@@ -97,7 +97,7 @@ array_multisort($tabs_sorted, SORT_ASC, $post_grid_settings_tabs);
97
  ?>
98
 
99
 
100
- <form method="post" action="<?php echo esc_url(str_replace( '%7E', '~', esc_url_raw($_SERVER['REQUEST_URI']))); ?>">
101
  <input type="hidden" name="post_grid_hidden" value="Y">
102
 
103
 
97
  ?>
98
 
99
 
100
+ <form method="post" action="<?php echo esc_url(str_replace( '%7E', '~', esc_url($_SERVER['REQUEST_URI']))); ?>">
101
  <input type="hidden" name="post_grid_hidden" value="Y">
102
 
103
 
includes/menu/settings.php CHANGED
@@ -57,7 +57,7 @@ $post_grid_settings = get_option('post_grid_settings');
57
  ?>
58
  <div class="wrap">
59
  <div id="icon-tools" class="icon32"><br></div><h2><?php echo esc_html(sprintf(__('%s Settings', 'post-grid'), post_grid_plugin_name)); ?></h2>
60
- <form method="post" action="<?php echo esc_url(str_replace( '%7E', '~', esc_url_raw($_SERVER['REQUEST_URI']))); ?>">
61
  <input type="hidden" name="post_grid_hidden" value="Y">
62
  <input type="hidden" name="tab" value="<?php echo esc_attr($current_tab); ?>">
63
  <?php
57
  ?>
58
  <div class="wrap">
59
  <div id="icon-tools" class="icon32"><br></div><h2><?php echo esc_html(sprintf(__('%s Settings', 'post-grid'), post_grid_plugin_name)); ?></h2>
60
+ <form method="post" action="<?php echo esc_url(str_replace( '%7E', '~', esc_url($_SERVER['REQUEST_URI']))); ?>">
61
  <input type="hidden" name="post_grid_hidden" value="Y">
62
  <input type="hidden" name="tab" value="<?php echo esc_attr($current_tab); ?>">
63
  <?php
includes/metabox-post-grid-hook.php CHANGED
@@ -703,7 +703,7 @@ function post_grid_metabox_tabs_content_layouts($tab, $post_id){
703
  $post_id = get_the_id();
704
  $layout_name = get_the_title();
705
  $product_thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post_id), 'full' );
706
- $product_thumb_url = isset($product_thumb['0']) ? esc_url_raw($product_thumb['0']) : '';
707
 
708
  $layout_options = get_post_meta($post_id,'layout_options', true);
709
  $layout_preview_img = !empty($layout_options['layout_preview_img']) ? $layout_options['layout_preview_img'] : post_grid_plugin_url.'assets/admin/images/placeholder.jpg';
703
  $post_id = get_the_id();
704
  $layout_name = get_the_title();
705
  $product_thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post_id), 'full' );
706
+ $product_thumb_url = isset($product_thumb['0']) ? esc_url($product_thumb['0']) : '';
707
 
708
  $layout_options = get_post_meta($post_id,'layout_options', true);
709
  $layout_preview_img = !empty($layout_options['layout_preview_img']) ? $layout_options['layout_preview_img'] : post_grid_plugin_url.'assets/admin/images/placeholder.jpg';
includes/post-grid-layout-elements.php CHANGED
@@ -1443,7 +1443,7 @@ function post_grid_layout_element_content($args){
1443
 
1444
  ?>
1445
  <div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> content ">
1446
- <?php echo esc_html($post_content); ?>
1447
  </div>
1448
  <?php
1449
  }
@@ -5071,7 +5071,7 @@ function post_grid_layout_element_categories($args){
5071
  $term_name = isset($term->name) ? $term->name : '';
5072
  $term_link = get_term_link($term_id);
5073
 
5074
- $categories_html .= '<a target="'.esc_attr($link_target).'" href="'.esc_url_raw($term_link).'">'.esc_html($term_name).'</a>';
5075
  if( $i+1 < $max_term_limit){ $categories_html .= $separator;}
5076
 
5077
  $i++;
@@ -5081,7 +5081,7 @@ function post_grid_layout_element_categories($args){
5081
 
5082
  ?>
5083
  <div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> categories ">
5084
- <?php echo esc_html(sprintf($wrapper_html, $categories_html)); ?>
5085
  </div>
5086
  <?php
5087
  }
@@ -5392,7 +5392,7 @@ function post_grid_layout_element_tags($args){
5392
  $term_name = isset($term->name) ? $term->name : '';
5393
  $term_link = get_term_link($term_id);
5394
 
5395
- $categories_html .= '<a target="'.esc_attr($link_target).'" href="'.esc_url_raw($term_link).'">'.esc_html($term_name).'</a>';
5396
  if( $i+1 < $max_term_limit){ $categories_html .= $separator;}
5397
 
5398
  $i++;
@@ -5400,7 +5400,7 @@ function post_grid_layout_element_tags($args){
5400
 
5401
  ?>
5402
  <div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> tags ">
5403
- <?php echo esc_html(sprintf($wrapper_html, $categories_html)); ?>
5404
  </div>
5405
  <?php
5406
  }
@@ -5693,7 +5693,7 @@ function post_grid_layout_element_comments_count($args){
5693
 
5694
  ?>
5695
  <div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> tags ">
5696
- <?php echo esc_html(sprintf($wrapper_html, $comments_count_html)); ?>
5697
  </div>
5698
  <?php
5699
 
@@ -5941,7 +5941,7 @@ function post_grid_layout_element_share_button($args){
5941
 
5942
  ?>
5943
  <div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> share_button ">
5944
- <?php echo esc_html(sprintf($wrapper_html, $share_button_html)); ?>
5945
  </div>
5946
  <?php
5947
  }
@@ -6415,7 +6415,7 @@ function post_grid_layout_element_five_star($args){
6415
 
6416
  ?>
6417
  <div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> five_star ">
6418
- <?php echo esc_html(sprintf($wrapper_html, $five_star_html)); ?>
6419
  </div>
6420
  <?php
6421
  }
1443
 
1444
  ?>
1445
  <div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> content ">
1446
+ <?php echo $post_content; ?>
1447
  </div>
1448
  <?php
1449
  }
5071
  $term_name = isset($term->name) ? $term->name : '';
5072
  $term_link = get_term_link($term_id);
5073
 
5074
+ $categories_html .= '<a target="'.esc_attr($link_target).'" href="'.esc_url($term_link).'">'.esc_html($term_name).'</a>';
5075
  if( $i+1 < $max_term_limit){ $categories_html .= $separator;}
5076
 
5077
  $i++;
5081
 
5082
  ?>
5083
  <div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> categories ">
5084
+ <?php echo sprintf($wrapper_html, $categories_html); ?>
5085
  </div>
5086
  <?php
5087
  }
5392
  $term_name = isset($term->name) ? $term->name : '';
5393
  $term_link = get_term_link($term_id);
5394
 
5395
+ $categories_html .= '<a target="'.esc_attr($link_target).'" href="'.esc_url($term_link).'">'.esc_html($term_name).'</a>';
5396
  if( $i+1 < $max_term_limit){ $categories_html .= $separator;}
5397
 
5398
  $i++;
5400
 
5401
  ?>
5402
  <div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> tags ">
5403
+ <?php echo sprintf($wrapper_html, $categories_html); ?>
5404
  </div>
5405
  <?php
5406
  }
5693
 
5694
  ?>
5695
  <div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> tags ">
5696
+ <?php echo sprintf($wrapper_html, $comments_count_html); ?>
5697
  </div>
5698
  <?php
5699
 
5941
 
5942
  ?>
5943
  <div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> share_button ">
5944
+ <?php echo sprintf($wrapper_html, $share_button_html); ?>
5945
  </div>
5946
  <?php
5947
  }
6415
 
6416
  ?>
6417
  <div class="element element_<?php echo esc_attr($elementIndex); ?> <?php echo esc_attr($custom_class); ?> five_star ">
6418
+ <?php echo sprintf($wrapper_html, $five_star_html); ?>
6419
  </div>
6420
  <?php
6421
  }
post-grid.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Post Grid by PickPlugins
4
  Plugin URI: https://www.pickplugins.com/item/post-grid-create-awesome-grid-from-any-post-type-for-wordpress/
5
  Description: Awesome post grid for query post from any post type and display on grid.
6
- Version: 2.1.18
7
  Author: PickPlugins
8
  Author URI: https://www.pickplugins.com/
9
  License: GPLv2 or later
@@ -21,7 +21,7 @@ if( !class_exists( 'PostGrid' )){
21
  define('post_grid_plugin_dir', plugin_dir_path(__FILE__));
22
  define('post_grid_plugin_basename', plugin_basename(__FILE__));
23
  define('post_grid_plugin_name', 'Post Grid');
24
- define('post_grid_version', '2.1.18');
25
  define('post_grid_server_url', 'https://www.pickplugins.com/demo/post-grid/');
26
 
27
 
3
  Plugin Name: Post Grid by PickPlugins
4
  Plugin URI: https://www.pickplugins.com/item/post-grid-create-awesome-grid-from-any-post-type-for-wordpress/
5
  Description: Awesome post grid for query post from any post type and display on grid.
6
+ Version: 2.1.19
7
  Author: PickPlugins
8
  Author URI: https://www.pickplugins.com/
9
  License: GPLv2 or later
21
  define('post_grid_plugin_dir', plugin_dir_path(__FILE__));
22
  define('post_grid_plugin_basename', plugin_basename(__FILE__));
23
  define('post_grid_plugin_name', 'Post Grid');
24
+ define('post_grid_version', '2.1.19');
25
  define('post_grid_server_url', 'https://www.pickplugins.com/demo/post-grid/');
26
 
27
 
readme.txt CHANGED
@@ -4,7 +4,7 @@
4
  Tags: post grid, grid, custom post grid, post type grid, grid display, category filter, custom post, filter, filtering, grid, layout, list, masonry, post, post filter, post layout, taxonomy, taxonomy filter,
5
  Requires at least: 3.8
6
  Tested up to: 5.8
7
- Stable tag: 2.1.18
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -222,6 +222,8 @@ then paste this shortcode anywhere in your page to display grid<br />
222
 
223
  == Changelog ==
224
 
 
 
225
 
226
  = 2.1.18 =
227
  * 2022-03-15 - fix - HTML string output issue fixed.
4
  Tags: post grid, grid, custom post grid, post type grid, grid display, category filter, custom post, filter, filtering, grid, layout, list, masonry, post, post filter, post layout, taxonomy, taxonomy filter,
5
  Requires at least: 3.8
6
  Tested up to: 5.8
7
+ Stable tag: 2.1.19
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
222
 
223
  == Changelog ==
224
 
225
+ = 2.1.19 =
226
+ * 2022-03-16 - fix - HTML string output for category, tags, content, share button issue fixed.
227
 
228
  = 2.1.18 =
229
  * 2022-03-15 - fix - HTML string output issue fixed.