Completed
Branch codeclean (dcdedc)
by Sébastien
01:48
created
auto-load-next-post.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -279,7 +279,7 @@
 block discarded – undo
279 279
 		 * @param   string  $name      The ID to register with WordPress.
280 280
 		 * @param   string  $file_path The path to the actual file.
281 281
 		 * @param   bool    $is_script Optional, argument for if the incoming file_path is a JavaScript source file.
282
-		 * @param   array   $support   Optional, for requiring other javascripts for the source file you are calling.
282
+		 * @param   string[]   $support   Optional, for requiring other javascripts for the source file you are calling.
283 283
 		 * @param   string  $version   Optional, can match the version of the plugin or version of the source file.
284 284
 		 * @param   bool    $footer Optional, can set the JavaScript to load in the footer instead.
285 285
 		 */
Please login to merge, or discard this patch.
includes/class-alnp-install.php 1 patch
Braces   +19 added lines, -8 removed lines patch added patch discarded remove patch
@@ -128,10 +128,18 @@  discard block
 block discarded – undo
128 128
 				$navigation_container = alnp_get_theme_support( 'navigation_container' );
129 129
 				$comments_container   = alnp_get_theme_support( 'comments_container' );
130 130
 
131
-				if ( ! empty( $content_container ) ) update_option( 'auto_load_next_post_content_container', $content_container );
132
-				if ( ! empty( $title_selector ) ) update_option( 'auto_load_next_post_title_selector', $title_selector );
133
-				if ( ! empty( $navigation_container ) ) update_option( 'auto_load_next_post_navigation_container', $navigation_container );
134
-				if ( ! empty( $comments_container ) ) update_option( 'auto_load_next_post_comments_container', $comments_container );
131
+				if ( ! empty( $content_container ) ) {
132
+					update_option( 'auto_load_next_post_content_container', $content_container );
133
+				}
134
+				if ( ! empty( $title_selector ) ) {
135
+					update_option( 'auto_load_next_post_title_selector', $title_selector );
136
+				}
137
+				if ( ! empty( $navigation_container ) ) {
138
+					update_option( 'auto_load_next_post_navigation_container', $navigation_container );
139
+				}
140
+				if ( ! empty( $comments_container ) ) {
141
+					update_option( 'auto_load_next_post_comments_container', $comments_container );
142
+				}
135 143
 			}
136 144
 		} // END set_theme_selectors()
137 145
 
@@ -150,8 +158,12 @@  discard block
 block discarded – undo
150 158
 				$load_js_in_footer = alnp_get_theme_support( 'load_js_in_footer' );
151 159
 				$lock_js_in_footer = alnp_get_theme_support( 'lock_js_in_footer' );
152 160
 
153
-				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 );
154
-				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 );
161
+				if ( ! empty( $load_js_in_footer ) && $load_js_in_footer == 'yes' ) {
162
+					update_option( 'auto_load_next_post_load_js_in_footer', $load_js_in_footer );
163
+				}
164
+				if ( ! empty( $lock_js_in_footer ) && $lock_js_in_footer == 'yes' ) {
165
+					update_option( 'auto_load_next_post_lock_js_in_footer', $lock_js_in_footer );
166
+				}
155 167
 			}
156 168
 		} // END set_js_in_footer()
157 169
 
@@ -258,8 +270,7 @@  discard block
 block discarded – undo
258 270
 
259 271
 					// Delete Install Date
260 272
 					delete_option( 'auto_load_next_post_install_date' );
261
-				}
262
-				else {
273
+				} else {
263 274
 					// Delete Uninstall Data
264 275
 					delete_site_option( 'auto_load_next_post_uninstall_data' );
265 276
 
Please login to merge, or discard this patch.