Passed
Push — main ( aaef5c...e4c121 )
by TARIQ
71:39
created
wp/wp-admin/options-permalink.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -390,7 +390,8 @@  discard block
 block discarded – undo
390 390
 				);
391 391
 				?>
392 392
 </p>
393
-		<?php else : ?>
393
+		<?php else {
394
+    : ?>
394 395
 <p id="iis-description-b">
395 396
 			<?php
396 397
 			printf(
@@ -401,6 +402,7 @@  discard block
 block discarded – undo
401 402
 				'<kbd>Ctrl + A</kbd>',
402 403
 				'<kbd>⌘ + A</kbd>'
403 404
 			);
405
+}
404 406
 			?>
405 407
 </p>
406 408
 <form action="options-permalink.php" method="post">
@@ -419,7 +421,8 @@  discard block
 block discarded – undo
419 421
 		<?php endif; ?>
420 422
 	<?php endif; ?>
421 423
 		<?php
422
-else :
424
+else {
425
+    :
423 426
 	if ( $permalink_structure && ! $using_index_permalinks && ! $writable && $htaccess_update_required ) :
424 427
 		?>
425 428
 <p id="htaccess-description">
@@ -432,6 +435,7 @@  discard block
 block discarded – undo
432 435
 			'<kbd>Ctrl + A</kbd>',
433 436
 			'<kbd>⌘ + A</kbd>'
434 437
 		);
438
+}
435 439
 		?>
436 440
 </p>
437 441
 <form action="options-permalink.php" method="post">
Please login to merge, or discard this patch.
wp/wp-admin/themes.php 1 patch
Braces   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -399,11 +399,15 @@  discard block
 block discarded – undo
399 399
 			<div class="update-message notice inline notice-warning notice-alt"><p>
400 400
 				<?php if ( $theme['hasPackage'] ) : ?>
401 401
 					<?php _e( 'New version available. <button class="button-link" type="button">Update now</button>' ); ?>
402
-				<?php else : ?>
403
-					<?php _e( 'New version available.' ); ?>
402
+				<?php else {
403
+    : ?>
404
+					<?php _e( 'New version available.' );
405
+}
406
+?>
404 407
 				<?php endif; ?>
405 408
 			</p></div>
406
-		<?php else : ?>
409
+		<?php else {
410
+    : ?>
407 411
 			<div class="update-message notice inline notice-error notice-alt"><p>
408 412
 				<?php
409 413
 				if ( ! $theme['updateResponse']['compatibleWP'] && ! $theme['updateResponse']['compatiblePHP'] ) {
@@ -412,6 +416,7 @@  discard block
 block discarded – undo
412 416
 						__( 'There is a new version of %s available, but it does not work with your versions of WordPress and PHP.' ),
413 417
 						$theme['name']
414 418
 					);
419
+}
415 420
 					if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) {
416 421
 						printf(
417 422
 							/* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */
Please login to merge, or discard this patch.
wp/wp-admin/user-edit.php 1 patch
Braces   +20 added lines, -8 removed lines patch added patch discarded remove patch
@@ -205,8 +205,11 @@  discard block
 block discarded – undo
205 205
 			<div id="message" class="updated notice is-dismissible">
206 206
 				<?php if ( IS_PROFILE_PAGE ) : ?>
207 207
 					<p><strong><?php _e( 'Profile updated.' ); ?></strong></p>
208
-				<?php else : ?>
209
-					<p><strong><?php _e( 'User updated.' ); ?></strong></p>
208
+				<?php else {
209
+    : ?>
210
+					<p><strong><?php _e( 'User updated.' );
211
+}
212
+?></strong></p>
210 213
 				<?php endif; ?>
211 214
 				<?php if ( $wp_http_referer && false === strpos( $wp_http_referer, 'user-new.php' ) && ! IS_PROFILE_PAGE ) : ?>
212 215
 					<p><a href="<?php echo esc_url( wp_validate_redirect( esc_url_raw( $wp_http_referer ), self_admin_url( 'users.php' ) ) ); ?>"><?php _e( '&larr; Go to Users' ); ?></a></p>
@@ -443,8 +446,11 @@  discard block
 block discarded – undo
443 446
 							<td>
444 447
 								<?php if ( 0 !== strcasecmp( $profile_user->user_email, get_site_option( 'admin_email' ) ) || ! is_super_admin( $profile_user->ID ) ) : ?>
445 448
 									<p><label><input type="checkbox" id="super_admin" name="super_admin"<?php checked( is_super_admin( $profile_user->ID ) ); ?> /> <?php _e( 'Grant this user super admin privileges for the Network.' ); ?></label></p>
446
-								<?php else : ?>
447
-									<p><?php _e( 'Super admin privileges cannot be removed because this user has the network admin email.' ); ?></p>
449
+								<?php else {
450
+    : ?>
451
+									<p><?php _e( 'Super admin privileges cannot be removed because this user has the network admin email.' );
452
+}
453
+?></p>
448 454
 								<?php endif; ?>
449 455
 							</td>
450 456
 						</tr>
@@ -658,8 +664,11 @@  discard block
 block discarded – undo
658 664
 								<input name="pass2" type="password" id="pass2" class="regular-text" value="" autocomplete="new-password" aria-describedby="pass2-desc" />
659 665
 									<?php if ( IS_PROFILE_PAGE ) : ?>
660 666
 										<p class="description" id="pass2-desc"><?php _e( 'Type your new password again.' ); ?></p>
661
-									<?php else : ?>
662
-										<p class="description" id="pass2-desc"><?php _e( 'Type the new password again.' ); ?></p>
667
+									<?php else {
668
+    : ?>
669
+										<p class="description" id="pass2-desc"><?php _e( 'Type the new password again.' );
670
+}
671
+?></p>
663 672
 									<?php endif; ?>
664 673
 								</td>
665 674
 							</tr>
@@ -796,9 +805,12 @@  discard block
 block discarded – undo
796 805
 
797 806
 										<button type="button" name="do_new_application_password" id="do_new_application_password" class="button button-secondary"><?php _e( 'Add New Application Password' ); ?></button>
798 807
 									</div>
799
-								<?php else : ?>
808
+								<?php else {
809
+    : ?>
800 810
 									<div class="notice notice-error inline">
801
-										<p><?php _e( 'Your website appears to use Basic Authentication, which is not currently compatible with Application Passwords.' ); ?></p>
811
+										<p><?php _e( 'Your website appears to use Basic Authentication, which is not currently compatible with Application Passwords.' );
812
+}
813
+?></p>
802 814
 									</div>
803 815
 								<?php endif; ?>
804 816
 
Please login to merge, or discard this patch.
wp/wp-admin/options.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -400,8 +400,11 @@
 block discarded – undo
400 400
 <td>
401 401
 	<?php if ( strpos( $value, "\n" ) !== false ) : ?>
402 402
 		<textarea class="<?php echo $class; ?>" name="<?php echo $name; ?>" id="<?php echo $name; ?>" cols="30" rows="5"><?php echo esc_textarea( $value ); ?></textarea>
403
-	<?php else : ?>
404
-		<input class="regular-text <?php echo $class; ?>" type="text" name="<?php echo $name; ?>" id="<?php echo $name; ?>" value="<?php echo esc_attr( $value ); ?>"<?php disabled( $disabled, true ); ?> />
403
+	<?php else {
404
+    : ?>
405
+		<input class="regular-text <?php echo $class;
406
+}
407
+?>" type="text" name="<?php echo $name; ?>" id="<?php echo $name; ?>" value="<?php echo esc_attr( $value ); ?>"<?php disabled( $disabled, true ); ?> />
405 408
 	<?php endif; ?></td>
406 409
 </tr>
407 410
 <?php endforeach; ?>
Please login to merge, or discard this patch.
wp/wp-admin/edit-link-form.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -160,9 +160,12 @@
 block discarded – undo
160 160
 <input type="hidden" name="action" value="save" />
161 161
 <input type="hidden" name="link_id" value="<?php echo (int) $link_id; ?>" />
162 162
 <input type="hidden" name="cat_id" value="<?php echo (int) $cat_id; ?>" />
163
-<?php else : ?>
163
+<?php else {
164
+    : ?>
164 165
 <input type="hidden" name="action" value="add" />
165
-<?php endif; ?>
166
+<?php endif;
167
+}
168
+?>
166 169
 
167 170
 </div>
168 171
 </div>
Please login to merge, or discard this patch.
wp/wp-admin/options-media.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,10 +139,13 @@
 block discarded – undo
139 139
 </tr>
140 140
 <tr>
141 141
 <td colspan="2" class="td-full">
142
-<?php else : ?>
142
+<?php else {
143
+    : ?>
143 144
 <tr>
144 145
 <td class="td-full">
145
-<?php endif; ?>
146
+<?php endif;
147
+}
148
+?>
146 149
 <label for="uploads_use_yearmonth_folders">
147 150
 <input name="uploads_use_yearmonth_folders" type="checkbox" id="uploads_use_yearmonth_folders" value="1"<?php checked( '1', get_option( 'uploads_use_yearmonth_folders' ) ); ?> />
148 151
 	<?php _e( 'Organize my uploads into month- and year-based folders' ); ?>
Please login to merge, or discard this patch.
wp/wp-admin/options-writing.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -215,7 +215,8 @@  discard block
 block discarded – undo
215 215
 
216 216
 	<textarea name="ping_sites" id="ping_sites" class="large-text code" rows="3"><?php echo esc_textarea( get_option( 'ping_sites' ) ); ?></textarea>
217 217
 
218
-	<?php else : ?>
218
+	<?php else {
219
+    : ?>
219 220
 
220 221
 	<p>
221 222
 		<?php
@@ -225,6 +226,7 @@  discard block
 block discarded – undo
225 226
 			__( 'https://wordpress.org/support/article/update-services/' ),
226 227
 			'options-reading.php'
227 228
 		);
229
+}
228 230
 		?>
229 231
 	</p>
230 232
 
Please login to merge, or discard this patch.
wp/wp-admin/authorize-application.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -153,8 +153,11 @@  discard block
 block discarded – undo
153 153
 				);
154 154
 				?>
155 155
 			</p>
156
-		<?php else : ?>
157
-			<p><?php _e( 'Would you like to give this application access to your account? You should only do this if you trust the application in question.' ); ?></p>
156
+		<?php else {
157
+    : ?>
158
+			<p><?php _e( 'Would you like to give this application access to your account? You should only do this if you trust the application in question.' );
159
+}
160
+?></p>
158 161
 		<?php endif; ?>
159 162
 
160 163
 		<?php
@@ -227,8 +230,11 @@  discard block
 block discarded – undo
227 230
 			 */
228 231
 			do_action( 'wp_authorize_application_password_form_approved_no_js', $new_password, $request, $user );
229 232
 			?>
230
-		<?php else : ?>
231
-			<form action="<?php echo esc_url( admin_url( 'authorize-application.php' ) ); ?>" method="post" class="form-wrap">
233
+		<?php else {
234
+    : ?>
235
+			<form action="<?php echo esc_url( admin_url( 'authorize-application.php' ) );
236
+}
237
+?>" method="post" class="form-wrap">
232 238
 				<?php wp_nonce_field( 'authorize_application_password' ); ?>
233 239
 				<input type="hidden" name="action" value="authorize_application_password" />
234 240
 				<input type="hidden" name="app_id" value="<?php echo esc_attr( $app_id ); ?>" />
Please login to merge, or discard this patch.
wp/wp-admin/network/site-info.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -165,10 +165,13 @@
 block discarded – undo
165 165
 		</tr>
166 166
 			<?php
167 167
 			// For any other site, the scheme, domain, and path can all be changed.
168
-		else :
168
+		else {
169
+		    :
169 170
 			?>
170 171
 		<tr class="form-field form-required">
171
-			<th scope="row"><label for="url"><?php _e( 'Site Address (URL)' ); ?></label></th>
172
+			<th scope="row"><label for="url"><?php _e( 'Site Address (URL)' );
173
+		}
174
+		?></label></th>
172 175
 			<td><input name="blog[url]" type="text" id="url" value="<?php echo $parsed_scheme . '://' . esc_attr( $details->domain ) . esc_attr( $details->path ); ?>" /></td>
173 176
 		</tr>
174 177
 		<?php endif; ?>
Please login to merge, or discard this patch.