Version Description
Download this release
Release Info
Developer | jetmonsters |
Plugin | Getwid – Gutenberg Blocks |
Version | 1.7.7 |
Comparing to | |
See all releases |
Code changes from version 1.7.6 to 1.7.7
- assets/blocks/template-parts/style.css +1 -1
- getwid.php +1 -1
- includes/functions.php +23 -0
- includes/rest-api.php +1 -1
- readme.txt +4 -1
assets/blocks/template-parts/style.css
CHANGED
@@ -34,11 +34,11 @@
|
|
34 |
* getwid-template-post-featured-image
|
35 |
*/.wp-block-getwid-template-post-featured-image{margin-bottom:.5em}.wp-block-getwid-template-post-featured-image:last-child{margin-bottom:0}.wp-block-getwid-template-post-featured-image.aligncenter a{display:block}.wp-block-getwid-template-post-featured-image.aligncenter img{margin:0 auto}.wp-block-getwid-template-post-featured-image img{display:block}.wp-block-column>.wp-block-getwid-template-post-featured-image:only-child{height:100%}.wp-block-column>.wp-block-getwid-template-post-featured-image:only-child img{height:100%;width:100%;-o-object-fit:cover;object-fit:cover}
|
36 |
|
|
|
37 |
/*!
|
38 |
* getwid-template-post-link
|
39 |
*/.wp-block-getwid-template-post-link{margin:1.25em 0 1.25em}.wp-block-getwid-template-post-link:first-child{margin-top:0}.wp-block-getwid-template-post-link:last-child{margin-bottom:0}.wp-block-getwid-template-post-link.has-text-color a{color:inherit}
|
40 |
|
41 |
-
|
42 |
/*!
|
43 |
* getwid-template-post-meta
|
44 |
*/.wp-block-getwid-template-post-meta{margin-bottom:.5em}.wp-block-getwid-template-post-meta:last-child{margin-bottom:0}.wp-block-getwid-template-post-meta>p{margin:0}.wp-block-getwid-template-post-meta>.getwid-post-meta-divider:nth-last-child(1),.wp-block-getwid-template-post-meta>.getwid-post-meta-divider:nth-last-child(2){display:none}.wp-block-getwid-template-post-meta.has-text-color a{color:inherit}.wp-block-getwid-template-post-meta.has-direction-row>*{display:inline;margin-bottom:0;margin-right:20px}.wp-block-getwid-template-post-meta.has-direction-row>:last-child{margin-right:0}.wp-block-getwid-template-post-meta.has-direction-row>p{margin-right:0}.wp-block-getwid-template-post-meta.has-direction-row>p+div{margin-left:5px}.wp-block-getwid-template-post-meta.has-direction-row.has-alignment-left{text-align:left}.wp-block-getwid-template-post-meta.has-direction-row.has-alignment-center{text-align:center}.wp-block-getwid-template-post-meta.has-direction-row.has-alignment-right{text-align:right}.wp-block-getwid-template-post-meta.has-direction-column:after{display:table;content:'';clear:both}.wp-block-getwid-template-post-meta.has-direction-column .getwid-post-meta-divider{display:none}.wp-block-getwid-template-post-meta.has-direction-column>p{float:left;margin-right:5px}
|
34 |
* getwid-template-post-featured-image
|
35 |
*/.wp-block-getwid-template-post-featured-image{margin-bottom:.5em}.wp-block-getwid-template-post-featured-image:last-child{margin-bottom:0}.wp-block-getwid-template-post-featured-image.aligncenter a{display:block}.wp-block-getwid-template-post-featured-image.aligncenter img{margin:0 auto}.wp-block-getwid-template-post-featured-image img{display:block}.wp-block-column>.wp-block-getwid-template-post-featured-image:only-child{height:100%}.wp-block-column>.wp-block-getwid-template-post-featured-image:only-child img{height:100%;width:100%;-o-object-fit:cover;object-fit:cover}
|
36 |
|
37 |
+
|
38 |
/*!
|
39 |
* getwid-template-post-link
|
40 |
*/.wp-block-getwid-template-post-link{margin:1.25em 0 1.25em}.wp-block-getwid-template-post-link:first-child{margin-top:0}.wp-block-getwid-template-post-link:last-child{margin-bottom:0}.wp-block-getwid-template-post-link.has-text-color a{color:inherit}
|
41 |
|
|
|
42 |
/*!
|
43 |
* getwid-template-post-meta
|
44 |
*/.wp-block-getwid-template-post-meta{margin-bottom:.5em}.wp-block-getwid-template-post-meta:last-child{margin-bottom:0}.wp-block-getwid-template-post-meta>p{margin:0}.wp-block-getwid-template-post-meta>.getwid-post-meta-divider:nth-last-child(1),.wp-block-getwid-template-post-meta>.getwid-post-meta-divider:nth-last-child(2){display:none}.wp-block-getwid-template-post-meta.has-text-color a{color:inherit}.wp-block-getwid-template-post-meta.has-direction-row>*{display:inline;margin-bottom:0;margin-right:20px}.wp-block-getwid-template-post-meta.has-direction-row>:last-child{margin-right:0}.wp-block-getwid-template-post-meta.has-direction-row>p{margin-right:0}.wp-block-getwid-template-post-meta.has-direction-row>p+div{margin-left:5px}.wp-block-getwid-template-post-meta.has-direction-row.has-alignment-left{text-align:left}.wp-block-getwid-template-post-meta.has-direction-row.has-alignment-center{text-align:center}.wp-block-getwid-template-post-meta.has-direction-row.has-alignment-right{text-align:right}.wp-block-getwid-template-post-meta.has-direction-column:after{display:table;content:'';clear:both}.wp-block-getwid-template-post-meta.has-direction-column .getwid-post-meta-divider{display:none}.wp-block-getwid-template-post-meta.has-direction-column>p{float:left;margin-right:5px}
|
getwid.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Getwid
|
4 |
* Plugin URI: https://motopress.com/products/getwid/
|
5 |
* Description: Extra Gutenberg blocks for building seamless and aesthetic websites in the WordPress block editor.
|
6 |
-
* Version: 1.7.
|
7 |
* Author: MotoPress
|
8 |
* Author URI: https://motopress.com/
|
9 |
* License: GPLv2 or later
|
3 |
* Plugin Name: Getwid
|
4 |
* Plugin URI: https://motopress.com/products/getwid/
|
5 |
* Description: Extra Gutenberg blocks for building seamless and aesthetic websites in the WordPress block editor.
|
6 |
+
* Version: 1.7.7
|
7 |
* Author: MotoPress
|
8 |
* Author URI: https://motopress.com/
|
9 |
* License: GPLv2 or later
|
includes/functions.php
CHANGED
@@ -507,3 +507,26 @@ function getwid_is_block_editor() {
|
|
507 |
&& ! empty( $_REQUEST[ 'context' ] )
|
508 |
&& 'edit' === sanitize_text_field( wp_unslash( $_REQUEST[ 'context' ] ) );
|
509 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
507 |
&& ! empty( $_REQUEST[ 'context' ] )
|
508 |
&& 'edit' === sanitize_text_field( wp_unslash( $_REQUEST[ 'context' ] ) );
|
509 |
}
|
510 |
+
|
511 |
+
/**
|
512 |
+
* Recursive sanitation for an array
|
513 |
+
*
|
514 |
+
* @since 1.7.7
|
515 |
+
*
|
516 |
+
* @param $array
|
517 |
+
*
|
518 |
+
* @return mixed
|
519 |
+
*/
|
520 |
+
function getwid_recursive_sanitize_array( $array ) {
|
521 |
+
|
522 |
+
foreach ( $array as $key => &$value ) {
|
523 |
+
if ( is_array( $value ) ) {
|
524 |
+
$value = getwid_recursive_sanitize_array( $value );
|
525 |
+
}
|
526 |
+
else {
|
527 |
+
$value = sanitize_text_field( $value );
|
528 |
+
}
|
529 |
+
}
|
530 |
+
|
531 |
+
return $array;
|
532 |
+
}
|
includes/rest-api.php
CHANGED
@@ -246,7 +246,7 @@ class RestAPI {
|
|
246 |
}
|
247 |
|
248 |
public function get_terms($object) {
|
249 |
-
$taxonomy_name =
|
250 |
|
251 |
$return = [];
|
252 |
$terms = get_terms(array(
|
246 |
}
|
247 |
|
248 |
public function get_terms($object) {
|
249 |
+
$taxonomy_name = getwid_recursive_sanitize_array( wp_unslash( $_GET['taxonomy_name'] ) );
|
250 |
|
251 |
$return = [];
|
252 |
$terms = get_terms(array(
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: gutenberg, gutenberg blocks, wordpress blocks, blocks, editor, block, gute
|
|
5 |
Requires at least: 5.4
|
6 |
Tested up to: 5.8
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 1.7.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -179,6 +179,9 @@ Getwid plugin is distributed under the terms of the GNU GPL.
|
|
179 |
|
180 |
== Changelog ==
|
181 |
|
|
|
|
|
|
|
182 |
= 1.7.6, Oct 27 2021 =
|
183 |
* Security - sanitization and escaping.
|
184 |
|
5 |
Requires at least: 5.4
|
6 |
Tested up to: 5.8
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 1.7.7
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
179 |
|
180 |
== Changelog ==
|
181 |
|
182 |
+
= 1.7.7, Nov 2 2021 =
|
183 |
+
* Fixed an issue with the empty terms list in the Custom Post Type and related blocks.
|
184 |
+
|
185 |
= 1.7.6, Oct 27 2021 =
|
186 |
* Security - sanitization and escaping.
|
187 |
|