Passed
Pull Request — master (#312)
by Warwick
02:11
created
includes/gutenberg.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,8 +26,9 @@  discard block
 block discarded – undo
26 26
  */
27 27
 function add_gutenberg_compatible_body_class( $classes ) {
28 28
 	// if ( ! is_home() && ! is_front_page() ).
29
-		if ( is_page() || is_page_template() || is_single() )
30
-			$classes[] = 'gutenberg-compatible-template';
29
+		if ( is_page() || is_page_template() || is_single() ) {
30
+					$classes[] = 'gutenberg-compatible-template';
31
+		}
31 32
 		return $classes;
32 33
 
33 34
 }
@@ -36,7 +37,8 @@  discard block
 block discarded – undo
36 37
 
37 38
 // Add custom class for templates that are using the Gutenberg editor.
38 39
 add_action('body_class', function( $classes ) {
39
-	if ( function_exists( 'has_blocks' ) && has_blocks( get_the_ID() ) && ( ! is_search() ) && ( ! is_archive() ) )
40
-		$classes[] = 'using-gutenberg';
40
+	if ( function_exists( 'has_blocks' ) && has_blocks( get_the_ID() ) && ( ! is_search() ) && ( ! is_archive() ) ) {
41
+			$classes[] = 'using-gutenberg';
42
+	}
41 43
 	return $classes;
42 44
 });
Please login to merge, or discard this patch.