diff --git a/functions.php b/functions.php
index 893e4529..f653bdcd 100644
--- a/functions.php
+++ b/functions.php
@@ -137,8 +137,7 @@
// Restrict to only selected blocks
// Set the value to 'all' to allow all blocks everywhere
'allowed_blocks' => [
- 'default' => [
- ],
+ 'default' => [],
'post' => [
'core/archives',
'core/audio',
diff --git a/inc/hooks/gutenberg.php b/inc/hooks/gutenberg.php
index 07c47dc1..23524739 100644
--- a/inc/hooks/gutenberg.php
+++ b/inc/hooks/gutenberg.php
@@ -25,6 +25,10 @@ function allowed_block_types( $allowed_blocks, $editor_context ) {
// If there is post type specific blocks, add them to the allowed blocks list
if ( isset( $editor_context->post->post_type ) && isset( THEME_SETTINGS['allowed_blocks'][ $editor_context->post->post_type ] ) ) {
+ if ( 'all' === THEME_SETTINGS['allowed_blocks'][ $editor_context->post->post_type ] ) {
+ return $allowed_blocks;
+ }
+
$allowed_blocks = array_merge( $allowed_blocks, THEME_SETTINGS['allowed_blocks'][ $editor_context->post->post_type ] );
}
diff --git a/inc/includes/nav-walker.php b/inc/includes/nav-walker.php
index 196b8266..9c3ff71d 100755
--- a/inc/includes/nav-walker.php
+++ b/inc/includes/nav-walker.php
@@ -106,7 +106,6 @@ public function start_lvl( &$output, $depth = 0, $args = null ) {
} else {
$output .= "\n{$n}{$indent}
{$n}";
}
-
}
/**
@@ -146,7 +145,7 @@ public function start_el( &$output, $item, $depth = 0, $args = null, $id = 0 ) {
// Updating the CSS classes of a menu item in the WordPress Customizer preview results in all classes defined
// in that particular input box to come in as one big class string.
- $split_on_spaces = function ( $class ) {
+ $split_on_spaces = function( $class ) {
return preg_split( '/\s+/', $class );
};
$classes = $this->flatten( array_map( $split_on_spaces, $classes ) );
@@ -600,5 +599,4 @@ public function flatten( $array ) {
}
return $result;
}
-
}
diff --git a/inc/includes/post-type.php b/inc/includes/post-type.php
index 7b46205f..de75df83 100644
--- a/inc/includes/post-type.php
+++ b/inc/includes/post-type.php
@@ -65,5 +65,4 @@ public function register_wp_post_type( $slug, $args ) {
return register_post_type( $slug, $args );
}
-
}
diff --git a/inc/includes/taxonomy.php b/inc/includes/taxonomy.php
index 37fa5861..2226b456 100644
--- a/inc/includes/taxonomy.php
+++ b/inc/includes/taxonomy.php
@@ -84,5 +84,4 @@ protected function register_wp_taxonomy( $slug, $object_types, $args ) {
return $registered_object_types;
}
-
}
diff --git a/inc/taxonomies/your-taxonomy.php b/inc/taxonomies/your-taxonomy.php
index 193dffeb..abefbb68 100644
--- a/inc/taxonomies/your-taxonomy.php
+++ b/inc/taxonomies/your-taxonomy.php
@@ -54,5 +54,4 @@ public function register( array $post_types = [] ) {
$this->register_wp_taxonomy( $this->slug, $post_types, $args );
}
-
}
diff --git a/inc/template-tags/edit-link.php b/inc/template-tags/edit-link.php
index ef8daf64..6d30470b 100644
--- a/inc/template-tags/edit-link.php
+++ b/inc/template-tags/edit-link.php
@@ -28,5 +28,4 @@ function air_edit_link() {
+function single_comment( $comment, $args, $depth ) {
+?>