projects
/
WP-Plugins
/
glm-blocks.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9dd6342
)
fixing filter sanitize int to string for the category slug
author
Anthony Talarico
<talarico@gaslightmedia.com>
Fri, 30 Nov 2018 16:27:17 +0000
(11:27 -0500)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Fri, 30 Nov 2018 16:27:17 +0000
(11:27 -0500)
glm-blocks.php
patch
|
blob
|
history
diff --git
a/glm-blocks.php
b/glm-blocks.php
index
1625e65
..
7ae7557
100644
(file)
--- a/
glm-blocks.php
+++ b/
glm-blocks.php
@@
-99,13
+99,13
@@
if (!function_exists('fetch_blocks_by_slug')) {
}
}
function action_item_blocks( $atts ){
-
+
$out = '';
extract(shortcode_atts(
array('category' => '-1'), $atts, 'glm-blocks')
);
if(function_exists('fetch_blocks_by_slug')):
- $category = filter_var($atts['category'], FILTER_
VALIDATE_INT
);
+ $category = filter_var($atts['category'], FILTER_
SANITIZE_STRING
);
fetch_blocks_by_slug($category);
$blocks = fetch_blocks_by_slug($category);
$out .= '<div id="glm-blocks" class="glm-blocks-container">';