Completed
Pull Request — master (#145)
by Sébastien
01:52
created
includes/customizer/class-alnp-customizer.php 1 patch
Braces   +7 added lines, -4 removed lines patch added patch discarded remove patch
@@ -165,8 +165,12 @@  discard block
 block discarded – undo
165 165
 		public function alnp_remove_widgets_panel( $components ) {
166 166
 			if ( $this->alnp_is_customizer() ) {
167 167
 				foreach( $components as $key => $component ) {
168
-					if ( $component == 'widgets' ) unset( $components[ 'widgets' ] );
169
-					if ( $component == 'nav_menus' ) unset( $components[ 'nav_menus' ] );
168
+					if ( $component == 'widgets' ) {
169
+						unset( $components[ 'widgets' ] );
170
+					}
171
+					if ( $component == 'nav_menus' ) {
172
+						unset( $components[ 'nav_menus' ] );
173
+					}
170 174
 				}
171 175
 			}
172 176
 
@@ -500,8 +504,7 @@  discard block
 block discarded – undo
500 504
 				return false;
501 505
 			} elseif ( is_home() ) {
502 506
 				return true;
503
-			}
504
-			elseif ( is_singular( apply_filters( 'alnp_customizer_posts_ready', array( 'post' ) ) ) ) {
507
+			} elseif ( is_singular( apply_filters( 'alnp_customizer_posts_ready', array( 'post' ) ) ) ) {
505 508
 				return true;
506 509
 			}
507 510
 
Please login to merge, or discard this patch.
includes/auto-load-next-post-core-functions.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -46,11 +46,9 @@  discard block
 block discarded – undo
46 46
 
47 47
 		if ( file_exists( $child_path . 'content-alnp.php' ) ) {
48 48
 			$template_redirect = $child_path . 'content-alnp.php';
49
-		}
50
-		else if( file_exists( $template_path . 'content-alnp.php') ) {
49
+		} else if( file_exists( $template_path . 'content-alnp.php') ) {
51 50
 			$template_redirect = $template_path . 'content-alnp.php';
52
-		}
53
-		else if( file_exists( $default_path . '/template/content-alnp.php' ) ) {
51
+		} else if( file_exists( $default_path . '/template/content-alnp.php' ) ) {
54 52
 			$template_redirect = $default_path . '/template/content-alnp.php';
55 53
 		}
56 54
 
@@ -122,8 +120,7 @@  discard block
 block discarded – undo
122 120
 
123 121
 				return get_permalink( $id );
124 122
 			endwhile;
125
-		}
126
-		else {
123
+		} else {
127 124
 			return false;
128 125
 		}
129 126
 	} // END alnp_get_random_page_permalink()
Please login to merge, or discard this patch.