Completed
Branch master (136588)
by
unknown
02:26
created
includes/class-alnp-install.php 1 patch
Braces   +22 added lines, -9 removed lines patch added patch discarded remove patch
@@ -127,10 +127,18 @@  discard block
 block discarded – undo
127 127
 				$navigation_container = alnp_get_theme_support( 'navigation_container' );
128 128
 				$comments_container   = alnp_get_theme_support( 'comments_container' );
129 129
 
130
-				if ( ! empty( $content_container ) ) update_option( 'auto_load_next_post_content_container', $content_container );
131
-				if ( ! empty( $title_selector ) ) update_option( 'auto_load_next_post_title_selector', $title_selector );
132
-				if ( ! empty( $navigation_container ) ) update_option( 'auto_load_next_post_navigation_container', $navigation_container );
133
-				if ( ! empty( $comments_container ) ) update_option( 'auto_load_next_post_comments_container', $comments_container );
130
+				if ( ! empty( $content_container ) ) {
131
+					update_option( 'auto_load_next_post_content_container', $content_container );
132
+				}
133
+				if ( ! empty( $title_selector ) ) {
134
+					update_option( 'auto_load_next_post_title_selector', $title_selector );
135
+				}
136
+				if ( ! empty( $navigation_container ) ) {
137
+					update_option( 'auto_load_next_post_navigation_container', $navigation_container );
138
+				}
139
+				if ( ! empty( $comments_container ) ) {
140
+					update_option( 'auto_load_next_post_comments_container', $comments_container );
141
+				}
134 142
 			}
135 143
 		} // END set_theme_selectors()
136 144
 
@@ -149,8 +157,12 @@  discard block
 block discarded – undo
149 157
 				$load_js_in_footer = alnp_get_theme_support( 'load_js_in_footer' );
150 158
 				$lock_js_in_footer = alnp_get_theme_support( 'lock_js_in_footer' );
151 159
 
152
-				if ( ! empty( $load_js_in_footer ) && $load_js_in_footer == 'yes' ) update_option( 'auto_load_next_post_load_js_in_footer', $load_js_in_footer );
153
-				if ( ! empty( $lock_js_in_footer ) && $lock_js_in_footer == 'yes' ) update_option( 'auto_load_next_post_lock_js_in_footer', $lock_js_in_footer );
160
+				if ( ! empty( $load_js_in_footer ) && $load_js_in_footer == 'yes' ) {
161
+					update_option( 'auto_load_next_post_load_js_in_footer', $load_js_in_footer );
162
+				}
163
+				if ( ! empty( $lock_js_in_footer ) && $lock_js_in_footer == 'yes' ) {
164
+					update_option( 'auto_load_next_post_lock_js_in_footer', $lock_js_in_footer );
165
+				}
154 166
 			}
155 167
 		} // END set_js_in_footer()
156 168
 
@@ -166,7 +178,9 @@  discard block
 block discarded – undo
166 178
 			if ( is_alnp_supported() ) {
167 179
 				$directory = alnp_get_theme_support( 'directory_post' );
168 180
 
169
-				if ( ! empty( $directory ) ) update_option( 'auto_load_next_post_directory_post', $directory );
181
+				if ( ! empty( $directory ) ) {
182
+					update_option( 'auto_load_next_post_directory_post', $directory );
183
+				}
170 184
 			}
171 185
 		} // END set_template_directory()
172 186
 
@@ -271,8 +285,7 @@  discard block
 block discarded – undo
271 285
 
272 286
 					// Delete user interactions
273 287
 					$wpdb->query("DELETE FROM $wpdb->usermeta WHERE meta_key LIKE 'auto_load_next_post_%'");
274
-				}
275
-				else {
288
+				} else {
276 289
 					// Delete Uninstall Data
277 290
 					delete_site_option( 'auto_load_next_post_uninstall_data' );
278 291
 
Please login to merge, or discard this patch.
includes/auto-load-next-post-template-functions.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -327,8 +327,7 @@
 block discarded – undo
327 327
 		// If content is found then load the template part.
328 328
 		if ( $content_found && empty( $use_fallback ) ) {
329 329
 			locate_template( $template, true, false );
330
-		}
331
-		else {
330
+		} else {
332 331
 			do_action( 'alnp_load_content', $post_type );
333 332
 		}
334 333
 	} // END alnp_load_content()
Please login to merge, or discard this patch.