PluginProbe
BlockSpare – Gutenberg Blocks for News, Magazine, Blog & Business Websites / 3.3.3
BlockSpare – Gutenberg Blocks for News, Magazine, Blog & Business Websites v3.3.3
4.1.0 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.1.0 1.1.1 1.1.2 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 2.1.2 2.5.0 2.5.3 2.6.1 All 38 releases
← All changes | inc/pattern/pattern.php +4 -0 2.6.13.3.3 View file →
@@ -10,9 +10,11 @@
10 10
11 11 $templates_lists = apply_filters( 'blockspare_template_library', $blocks_lists );
12 12 $block_pattern_categories =[];
13 13 foreach($templates_lists as $tl){
14 + if($tl['content'] !== 'https://www.blockspare.com/'){
14 15 array_push($block_pattern_categories,$tl['item']);
16 + }
15 17 }
16 18
17 19 foreach($block_pattern_categories as $cat_name){
18 20 foreach(array_unique($cat_name) as $name){
@@ -26,8 +28,9 @@
26 28 }
27 29
28 30 $empty_template_array = [];
29 31 foreach($templates_lists as $template){
32 + if($template['content'] !== 'https://www.blockspare.com/'){
30 33 $new_template_array = [];
31 34 $new_template_array = array(
32 35 'title'=>$template['name'],
33 36 'categories'=>$template['item'],
@@ -34,8 +37,9 @@
34 37 'content'=>$template['content']
35 38 );
36 39
37 40 array_push($empty_template_array,$new_template_array);
41 + }
38 42
39 43 }
40 44 // Register pattern
41 45 if(!empty($empty_template_array)){