Post Grid - Version 2.1.21

Version Description

  • 2022-04-03 - fix - CSS escape issue fixed.
Download this release

Release Info

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

Code changes from version 2.1.20 to 2.1.21

includes/post-grid-layout-elements.php CHANGED
@@ -192,12 +192,12 @@ function post_grid_layout_element_css_wrapper_start($args){
192
  text-align: <?php echo esc_attr($text_align); ?>;
193
  <?php endif; ?>
194
  <?php if(!empty($css)): ?>
195
- <?php echo esc_attr($css); ?>
196
  <?php endif; ?>
197
  }
198
  <?php if(!empty($css_hover)): ?>
199
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
200
- <?php echo esc_attr($css_hover); ?>
201
  }
202
  <?php endif; ?>
203
  </style>
@@ -527,12 +527,12 @@ function post_grid_layout_element_css_custom_text($args){
527
  text-align: <?php echo esc_attr($text_align); ?>;
528
  <?php endif; ?>
529
  <?php if(!empty($css)): ?>
530
- <?php echo esc_attr($css); ?>
531
  <?php endif; ?>
532
  }
533
  <?php if(!empty($css_hover)): ?>
534
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
535
- <?php echo esc_attr($css_hover); ?>
536
  }
537
  <?php endif; ?>
538
  </style>
@@ -880,12 +880,12 @@ function post_grid_layout_element_css_title($args){
880
  text-align: <?php echo esc_attr($text_align); ?>;
881
  <?php endif; ?>
882
  <?php if(!empty($css)): ?>
883
- <?php echo esc_attr($css); ?>
884
  <?php endif; ?>
885
  }
886
  <?php if(!empty($css_hover)): ?>
887
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
888
- <?php echo esc_attr($css_hover); ?>
889
  }
890
  <?php endif; ?>
891
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
@@ -1239,12 +1239,12 @@ function post_grid_layout_element_css_title_link($args){
1239
  text-align: <?php echo esc_attr($text_align); ?>;
1240
  <?php endif; ?>
1241
  <?php if(!empty($css)): ?>
1242
- <?php echo esc_attr($css); ?>
1243
  <?php endif; ?>
1244
  }
1245
  <?php if(!empty($css_hover)): ?>
1246
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
1247
- <?php echo esc_attr($css_hover); ?>
1248
  }
1249
  <?php endif; ?>
1250
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
@@ -1858,12 +1858,12 @@ function post_grid_layout_element_css_excerpt($args){
1858
  text-align: <?php echo esc_attr($text_align); ?>;
1859
  <?php endif; ?>
1860
  <?php if(!empty($css)): ?>
1861
- <?php echo esc_attr($css); ?>
1862
  <?php endif; ?>
1863
  }
1864
  <?php if(!empty($css_hover)): ?>
1865
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
1866
- <?php echo esc_attr($css_hover); ?>
1867
  }
1868
  <?php endif; ?>
1869
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
@@ -2234,12 +2234,12 @@ function post_grid_layout_element_css_excerpt_read_more($args){
2234
  text-align: <?php echo esc_attr($text_align); ?>;
2235
  <?php endif; ?>
2236
  <?php if(!empty($css)): ?>
2237
- <?php echo esc_attr($css); ?>
2238
  <?php endif; ?>
2239
  }
2240
  <?php if(!empty($css_hover)): ?>
2241
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
2242
- <?php echo esc_attr($css_hover); ?>
2243
  }
2244
  <?php endif; ?>
2245
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
@@ -2560,12 +2560,12 @@ function post_grid_layout_element_css_read_more($args){
2560
  text-align: <?php echo esc_attr($text_align); ?>;
2561
  <?php endif; ?>
2562
  <?php if(!empty($css)): ?>
2563
- <?php echo esc_attr($css); ?>
2564
  <?php endif; ?>
2565
  }
2566
  <?php if(!empty($css_hover)): ?>
2567
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
2568
- <?php echo esc_attr($css_hover); ?>
2569
  }
2570
  <?php endif; ?>
2571
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
@@ -2978,7 +2978,6 @@ function post_grid_layout_element_css_media($args){
2978
  $css = isset($element['css']) ? $element['css'] : '';
2979
  $css_hover = isset($element['css_hover']) ? $element['css_hover'] : '';
2980
 
2981
- //var_dump($css);
2982
 
2983
  ?>
2984
  <style type="text/css">
@@ -2991,12 +2990,12 @@ function post_grid_layout_element_css_media($args){
2991
  <?php endif; ?>
2992
  overflow: hidden;
2993
  <?php if(!empty($css)): ?>
2994
- <?php echo esc_attr($css); ?>
2995
  <?php endif; ?>
2996
  }
2997
  <?php if(!empty($css_hover)): ?>
2998
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
2999
- <?php echo esc_attr($css_hover); ?>
3000
  }
3001
  <?php endif; ?>
3002
  @media only screen and (min-width: 1024px ){
@@ -4113,12 +4112,12 @@ function post_grid_layout_element_css_post_date($args){
4113
  text-align: <?php echo esc_attr($text_align); ?>;
4114
  <?php endif; ?>
4115
  <?php if(!empty($css)): ?>
4116
- <?php echo esc_attr($css); ?>
4117
  <?php endif; ?>
4118
  }
4119
  <?php if(!empty($css_hover)): ?>
4120
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
4121
- <?php echo esc_attr($css_hover); ?>
4122
  }
4123
  <?php endif; ?>
4124
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
@@ -4443,12 +4442,12 @@ function post_grid_layout_element_css_author($args){
4443
  text-align: <?php echo esc_attr($text_align); ?>;
4444
  <?php endif; ?>
4445
  <?php if(!empty($css)): ?>
4446
- <?php echo esc_attr($css); ?>
4447
  <?php endif; ?>
4448
  }
4449
  <?php if(!empty($css_hover)): ?>
4450
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
4451
- <?php echo esc_attr($css_hover); ?>
4452
  }
4453
  <?php endif; ?>
4454
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
@@ -4764,12 +4763,12 @@ function post_grid_layout_element_css_author_link($args){
4764
  text-align: <?php echo esc_attr($text_align); ?>;
4765
  <?php endif; ?>
4766
  <?php if(!empty($css)): ?>
4767
- <?php echo esc_attr($css); ?>
4768
  <?php endif; ?>
4769
  }
4770
  <?php if(!empty($css_hover)): ?>
4771
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
4772
- <?php echo esc_attr($css_hover); ?>
4773
  }
4774
  <?php endif; ?>
4775
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
@@ -5123,7 +5122,7 @@ function post_grid_layout_element_css_categories($args){
5123
  text-align: <?php echo esc_attr($text_align); ?>;
5124
  <?php endif; ?>
5125
  <?php if(!empty($css)): ?>
5126
- <?php echo esc_attr($css); ?>
5127
  <?php endif; ?>
5128
  }
5129
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
@@ -5139,7 +5138,7 @@ function post_grid_layout_element_css_categories($args){
5139
  }
5140
  <?php if(!empty($css_hover)): ?>
5141
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
5142
- <?php echo esc_attr($css_hover); ?>
5143
  }
5144
  <?php endif; ?>
5145
  </style>
@@ -5443,7 +5442,7 @@ function post_grid_layout_element_css_tags($args){
5443
  text-align: <?php echo esc_attr($text_align); ?>;
5444
  <?php endif; ?>
5445
  <?php if(!empty($css)): ?>
5446
- <?php echo esc_attr($css); ?>
5447
  <?php endif; ?>
5448
  }
5449
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
@@ -5459,7 +5458,7 @@ function post_grid_layout_element_css_tags($args){
5459
  }
5460
  <?php if(!empty($css_hover)): ?>
5461
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
5462
- <?php echo esc_attr($css_hover); ?>
5463
  }
5464
  <?php endif; ?>
5465
  </style>
@@ -5739,12 +5738,12 @@ function post_grid_layout_element_css_comments_count($args){
5739
  text-align: <?php echo esc_attr($text_align); ?>;
5740
  <?php endif; ?>
5741
  <?php if(!empty($css)): ?>
5742
- <?php echo esc_attr($css); ?>
5743
  <?php endif; ?>
5744
  }
5745
  <?php if(!empty($css_hover)): ?>
5746
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
5747
- <?php echo esc_attr($css_hover); ?>
5748
  }
5749
  <?php endif; ?>
5750
  </style>
@@ -5982,7 +5981,7 @@ function post_grid_layout_element_css_share_button($args){
5982
  text-align: <?php echo esc_attr($text_align); ?>;
5983
  <?php endif; ?>
5984
  <?php if(!empty($css)): ?>
5985
- <?php echo esc_attr($css); ?>
5986
  <?php endif; ?>
5987
  }
5988
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
@@ -5998,7 +5997,7 @@ function post_grid_layout_element_css_share_button($args){
5998
  }
5999
  <?php if(!empty($css_hover)): ?>
6000
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
6001
- <?php echo esc_attr($css_hover); ?>
6002
  }
6003
  <?php endif; ?>
6004
  </style>
@@ -6199,12 +6198,12 @@ function post_grid_layout_element_css_hr($args){
6199
  padding: <?php echo esc_attr($height); ?>;
6200
  <?php endif; ?>
6201
  <?php if(!empty($css)): ?>
6202
- <?php echo esc_attr($css); ?>
6203
  <?php endif; ?>
6204
  }
6205
  <?php if(!empty($css_hover)): ?>
6206
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
6207
- <?php echo esc_attr($css_hover); ?>
6208
  }
6209
  <?php endif; ?>
6210
  </style>
@@ -6455,12 +6454,12 @@ function post_grid_layout_element_css_five_star($args){
6455
  text-align: <?php echo esc_attr($text_align); ?>;
6456
  <?php endif; ?>
6457
  <?php if(!empty($css)): ?>
6458
- <?php echo esc_attr($css); ?>
6459
  <?php endif; ?>
6460
  }
6461
  <?php if(!empty($css_hover)): ?>
6462
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
6463
- <?php echo esc_attr($css_hover); ?>
6464
  }
6465
  <?php endif; ?>
6466
  </style>
192
  text-align: <?php echo esc_attr($text_align); ?>;
193
  <?php endif; ?>
194
  <?php if(!empty($css)): ?>
195
+ <?php echo wp_strip_all_tags($css); ?>
196
  <?php endif; ?>
197
  }
198
  <?php if(!empty($css_hover)): ?>
199
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
200
+ <?php echo wp_strip_all_tags($css_hover); ?>
201
  }
202
  <?php endif; ?>
203
  </style>
527
  text-align: <?php echo esc_attr($text_align); ?>;
528
  <?php endif; ?>
529
  <?php if(!empty($css)): ?>
530
+ <?php echo wp_strip_all_tags($css); ?>
531
  <?php endif; ?>
532
  }
533
  <?php if(!empty($css_hover)): ?>
534
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
535
+ <?php echo wp_strip_all_tags($css_hover); ?>
536
  }
537
  <?php endif; ?>
538
  </style>
880
  text-align: <?php echo esc_attr($text_align); ?>;
881
  <?php endif; ?>
882
  <?php if(!empty($css)): ?>
883
+ <?php echo wp_strip_all_tags($css); ?>
884
  <?php endif; ?>
885
  }
886
  <?php if(!empty($css_hover)): ?>
887
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
888
+ <?php echo wp_strip_all_tags($css_hover); ?>
889
  }
890
  <?php endif; ?>
891
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
1239
  text-align: <?php echo esc_attr($text_align); ?>;
1240
  <?php endif; ?>
1241
  <?php if(!empty($css)): ?>
1242
+ <?php echo wp_strip_all_tags($css); ?>
1243
  <?php endif; ?>
1244
  }
1245
  <?php if(!empty($css_hover)): ?>
1246
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
1247
+ <?php echo wp_strip_all_tags($css_hover); ?>
1248
  }
1249
  <?php endif; ?>
1250
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
1858
  text-align: <?php echo esc_attr($text_align); ?>;
1859
  <?php endif; ?>
1860
  <?php if(!empty($css)): ?>
1861
+ <?php echo wp_strip_all_tags($css); ?>
1862
  <?php endif; ?>
1863
  }
1864
  <?php if(!empty($css_hover)): ?>
1865
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
1866
+ <?php echo wp_strip_all_tags($css_hover); ?>
1867
  }
1868
  <?php endif; ?>
1869
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
2234
  text-align: <?php echo esc_attr($text_align); ?>;
2235
  <?php endif; ?>
2236
  <?php if(!empty($css)): ?>
2237
+ <?php echo wp_strip_all_tags($css); ?>
2238
  <?php endif; ?>
2239
  }
2240
  <?php if(!empty($css_hover)): ?>
2241
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
2242
+ <?php echo wp_strip_all_tags($css_hover); ?>
2243
  }
2244
  <?php endif; ?>
2245
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
2560
  text-align: <?php echo esc_attr($text_align); ?>;
2561
  <?php endif; ?>
2562
  <?php if(!empty($css)): ?>
2563
+ <?php echo wp_strip_all_tags($css); ?>
2564
  <?php endif; ?>
2565
  }
2566
  <?php if(!empty($css_hover)): ?>
2567
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
2568
+ <?php echo wp_strip_all_tags($css_hover); ?>
2569
  }
2570
  <?php endif; ?>
2571
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
2978
  $css = isset($element['css']) ? $element['css'] : '';
2979
  $css_hover = isset($element['css_hover']) ? $element['css_hover'] : '';
2980
 
 
2981
 
2982
  ?>
2983
  <style type="text/css">
2990
  <?php endif; ?>
2991
  overflow: hidden;
2992
  <?php if(!empty($css)): ?>
2993
+ <?php echo wp_strip_all_tags($css); ?>
2994
  <?php endif; ?>
2995
  }
2996
  <?php if(!empty($css_hover)): ?>
2997
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
2998
+ <?php echo wp_strip_all_tags($css_hover); ?>
2999
  }
3000
  <?php endif; ?>
3001
  @media only screen and (min-width: 1024px ){
4112
  text-align: <?php echo esc_attr($text_align); ?>;
4113
  <?php endif; ?>
4114
  <?php if(!empty($css)): ?>
4115
+ <?php echo wp_strip_all_tags($css); ?>
4116
  <?php endif; ?>
4117
  }
4118
  <?php if(!empty($css_hover)): ?>
4119
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
4120
+ <?php echo wp_strip_all_tags($css_hover); ?>
4121
  }
4122
  <?php endif; ?>
4123
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
4442
  text-align: <?php echo esc_attr($text_align); ?>;
4443
  <?php endif; ?>
4444
  <?php if(!empty($css)): ?>
4445
+ <?php echo wp_strip_all_tags($css); ?>
4446
  <?php endif; ?>
4447
  }
4448
  <?php if(!empty($css_hover)): ?>
4449
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
4450
+ <?php echo wp_strip_all_tags($css_hover); ?>
4451
  }
4452
  <?php endif; ?>
4453
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
4763
  text-align: <?php echo esc_attr($text_align); ?>;
4764
  <?php endif; ?>
4765
  <?php if(!empty($css)): ?>
4766
+ <?php echo wp_strip_all_tags($css); ?>
4767
  <?php endif; ?>
4768
  }
4769
  <?php if(!empty($css_hover)): ?>
4770
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
4771
+ <?php echo wp_strip_all_tags($css_hover); ?>
4772
  }
4773
  <?php endif; ?>
4774
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
5122
  text-align: <?php echo esc_attr($text_align); ?>;
5123
  <?php endif; ?>
5124
  <?php if(!empty($css)): ?>
5125
+ <?php echo wp_strip_all_tags($css); ?>
5126
  <?php endif; ?>
5127
  }
5128
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
5138
  }
5139
  <?php if(!empty($css_hover)): ?>
5140
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
5141
+ <?php echo wp_strip_all_tags($css_hover); ?>
5142
  }
5143
  <?php endif; ?>
5144
  </style>
5442
  text-align: <?php echo esc_attr($text_align); ?>;
5443
  <?php endif; ?>
5444
  <?php if(!empty($css)): ?>
5445
+ <?php echo wp_strip_all_tags($css); ?>
5446
  <?php endif; ?>
5447
  }
5448
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
5458
  }
5459
  <?php if(!empty($css_hover)): ?>
5460
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
5461
+ <?php echo wp_strip_all_tags($css_hover); ?>
5462
  }
5463
  <?php endif; ?>
5464
  </style>
5738
  text-align: <?php echo esc_attr($text_align); ?>;
5739
  <?php endif; ?>
5740
  <?php if(!empty($css)): ?>
5741
+ <?php echo wp_strip_all_tags($css); ?>
5742
  <?php endif; ?>
5743
  }
5744
  <?php if(!empty($css_hover)): ?>
5745
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
5746
+ <?php echo wp_strip_all_tags($css_hover); ?>
5747
  }
5748
  <?php endif; ?>
5749
  </style>
5981
  text-align: <?php echo esc_attr($text_align); ?>;
5982
  <?php endif; ?>
5983
  <?php if(!empty($css)): ?>
5984
+ <?php echo wp_strip_all_tags($css); ?>
5985
  <?php endif; ?>
5986
  }
5987
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?> a{
5997
  }
5998
  <?php if(!empty($css_hover)): ?>
5999
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
6000
+ <?php echo wp_strip_all_tags($css_hover); ?>
6001
  }
6002
  <?php endif; ?>
6003
  </style>
6198
  padding: <?php echo esc_attr($height); ?>;
6199
  <?php endif; ?>
6200
  <?php if(!empty($css)): ?>
6201
+ <?php echo wp_strip_all_tags($css); ?>
6202
  <?php endif; ?>
6203
  }
6204
  <?php if(!empty($css_hover)): ?>
6205
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
6206
+ <?php echo wp_strip_all_tags($css_hover); ?>
6207
  }
6208
  <?php endif; ?>
6209
  </style>
6454
  text-align: <?php echo esc_attr($text_align); ?>;
6455
  <?php endif; ?>
6456
  <?php if(!empty($css)): ?>
6457
+ <?php echo wp_strip_all_tags($css); ?>
6458
  <?php endif; ?>
6459
  }
6460
  <?php if(!empty($css_hover)): ?>
6461
  .layout-<?php echo esc_attr($layout_id); ?> .element_<?php echo esc_attr($index); ?>:hover{
6462
+ <?php echo wp_strip_all_tags($css_hover); ?>
6463
  }
6464
  <?php endif; ?>
6465
  </style>
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.20
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.20');
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.21
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.21');
25
  define('post_grid_server_url', 'https://www.pickplugins.com/demo/post-grid/');
26
 
27
 
readme.txt CHANGED
@@ -3,8 +3,8 @@
3
  Donate link: https://www.pickplugins.com/item/post-grid-create-awesome-grid-from-any-post-type-for-wordpress/?ref=wordpress.org
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.20
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -224,6 +224,8 @@ then paste this shortcode anywhere in your page to display grid<br />
224
 
225
 
226
 
 
 
227
 
228
 
229
 
3
  Donate link: https://www.pickplugins.com/item/post-grid-create-awesome-grid-from-any-post-type-for-wordpress/?ref=wordpress.org
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.9
7
+ Stable tag: 2.1.21
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
224
 
225
 
226
 
227
+ = 2.1.21 =
228
+ * 2022-04-03 - fix - CSS escape issue fixed.
229
 
230
 
231
 
templates/post-grid-hook.php CHANGED
@@ -1209,15 +1209,16 @@ function post_grid_main_scripts($args){
1209
  <?php if(!empty($custom_css)): ?>
1210
  <style type="text/css">
1211
  <?php
1212
- echo esc_attr($custom_css);
1213
  ?>
1214
  </style>
1215
  <?php endif; ?>
1216
 
 
1217
  <?php if(!empty($layout_custom_css)): ?>
1218
  <style type="text/css">
1219
  <?php
1220
- echo esc_attr(str_replace('__ID__', 'layout-'.esc_attr($layout_id), esc_attr($layout_custom_css)));
1221
  ?>
1222
  </style>
1223
  <?php endif; ?>
1209
  <?php if(!empty($custom_css)): ?>
1210
  <style type="text/css">
1211
  <?php
1212
+ echo wp_strip_all_tags($custom_css);
1213
  ?>
1214
  </style>
1215
  <?php endif; ?>
1216
 
1217
+
1218
  <?php if(!empty($layout_custom_css)): ?>
1219
  <style type="text/css">
1220
  <?php
1221
+ echo wp_strip_all_tags(str_replace('__ID__', 'layout-'.esc_attr($layout_id), ($layout_custom_css)));
1222
  ?>
1223
  </style>
1224
  <?php endif; ?>