Passed
Push — main ( aaef5c...e4c121 )
by TARIQ
71:39
created
wp/wp-admin/edit-tag-form.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -194,8 +194,11 @@
 block discarded – undo
194 194
 				?>
195 195
 				<?php if ( 'category' === $taxonomy ) : ?>
196 196
 					<p class="description"><?php _e( 'Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have children categories for Bebop and Big Band. Totally optional.' ); ?></p>
197
-				<?php else : ?>
198
-					<p class="description"><?php echo $tax->labels->parent_field_description; ?></p>
197
+				<?php else {
198
+    : ?>
199
+					<p class="description"><?php echo $tax->labels->parent_field_description;
200
+}
201
+?></p>
199 202
 				<?php endif; ?>
200 203
 			</td>
201 204
 		</tr>
Please login to merge, or discard this patch.
wp/wp-admin/theme-editor.php 1 patch
Braces   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -277,10 +277,13 @@  discard block
 block discarded – undo
277 277
 <?php
278 278
 if ( $error ) :
279 279
 	echo '<div class="error"><p>' . __( 'File does not exist! Please double check the name and try again.' ) . '</p></div>';
280
-else :
280
+else {
281
+    :
281 282
 	?>
282 283
 	<form name="template" id="template" action="theme-editor.php" method="post">
283
-		<?php wp_nonce_field( 'edit-theme_' . $stylesheet . '_' . $relative_file, 'nonce' ); ?>
284
+		<?php wp_nonce_field( 'edit-theme_' . $stylesheet . '_' . $relative_file, 'nonce' );
285
+}
286
+?>
284 287
 		<div>
285 288
 			<label for="newcontent" id="theme-plugin-editor-label"><?php _e( 'Selected file content:' ); ?></label>
286 289
 			<textarea cols="70" rows="30" name="newcontent" id="newcontent" aria-describedby="editor-keyboard-trap-help-1 editor-keyboard-trap-help-2 editor-keyboard-trap-help-3 editor-keyboard-trap-help-4"><?php echo $content; ?></textarea>
@@ -315,7 +318,8 @@  discard block
 block discarded – undo
315 318
 					<?php submit_button( __( 'Update File' ), 'primary', 'submit', false ); ?>
316 319
 					<span class="spinner"></span>
317 320
 				</p>
318
-			<?php else : ?>
321
+			<?php else {
322
+    : ?>
319 323
 				<p>
320 324
 					<?php
321 325
 					printf(
@@ -323,6 +327,7 @@  discard block
 block discarded – undo
323 327
 						__( 'You need to make this file writable before you can save your changes. See <a href="%s">Changing File Permissions</a> for more information.' ),
324 328
 						__( 'https://wordpress.org/support/article/changing-file-permissions/' )
325 329
 					);
330
+}
326 331
 					?>
327 332
 				</p>
328 333
 			<?php endif; ?>
Please login to merge, or discard this patch.
wp/wp-admin/plugins.php 1 patch
Braces   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -343,8 +343,11 @@  discard block
 block discarded – undo
343 343
 						<div class="error"><p><strong><?php _e( 'Caution:' ); ?></strong> <?php _e( 'This plugin may be active on other sites in the network.' ); ?></p></div>
344 344
 					<?php endif; ?>
345 345
 					<p><?php _e( 'You are about to remove the following plugin:' ); ?></p>
346
-				<?php else : ?>
347
-					<h1><?php _e( 'Delete Plugins' ); ?></h1>
346
+				<?php else {
347
+    : ?>
348
+					<h1><?php _e( 'Delete Plugins' );
349
+}
350
+?></h1>
348 351
 					<?php if ( $have_non_network_plugins && is_network_admin() ) : ?>
349 352
 						<div class="error"><p><strong><?php _e( 'Caution:' ); ?></strong> <?php _e( 'These plugins may be active on other sites in the network.' ); ?></p></div>
350 353
 					<?php endif; ?>
@@ -681,12 +684,14 @@  discard block
 block discarded – undo
681 684
 				?>
682 685
 			</p>
683 686
 		</div>
684
-		<?php else : ?>
687
+		<?php else {
688
+    : ?>
685 689
 		<div id="message" class="updated notice is-dismissible">
686 690
 			<p>
687 691
 				<?php
688 692
 				if ( 1 === (int) $_GET['deleted'] ) {
689 693
 					_e( 'The selected plugin has been deleted.' );
694
+}
690 695
 				} else {
691 696
 					_e( 'The selected plugins have been deleted.' );
692 697
 				}
Please login to merge, or discard this patch.
wp/wp-admin/options-reading.php 1 patch
Braces   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -77,9 +77,11 @@  discard block
 block discarded – undo
77 77
 		update_option( 'show_on_front', 'posts' );
78 78
 	endif;
79 79
 
80
-else :
80
+else {
81
+    :
81 82
 	if ( 'page' === get_option( 'show_on_front' ) && ! get_option( 'page_on_front' ) && ! get_option( 'page_for_posts' ) ) {
82 83
 		update_option( 'show_on_front', 'posts' );
84
+}
83 85
 	}
84 86
 	?>
85 87
 <table class="form-table" role="presentation">
@@ -202,8 +204,11 @@  discard block
 block discarded – undo
202 204
 	 */
203 205
 	do_action( 'blog_privacy_selector' );
204 206
 	?>
205
-<?php else : ?>
206
-	<label for="blog_public"><input name="blog_public" type="checkbox" id="blog_public" value="0" <?php checked( '0', get_option( 'blog_public' ) ); ?> />
207
+<?php else {
208
+    : ?>
209
+	<label for="blog_public"><input name="blog_public" type="checkbox" id="blog_public" value="0" <?php checked( '0', get_option( 'blog_public' ) );
210
+}
211
+?> />
207 212
 	<?php _e( 'Discourage search engines from indexing this site' ); ?></label>
208 213
 	<p class="description"><?php _e( 'It is up to search engines to honor this request.' ); ?></p>
209 214
 <?php endif; ?>
Please login to merge, or discard this patch.
wp/wp-admin/edit-tags.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -504,8 +504,11 @@
 block discarded – undo
504 504
 		?>
505 505
 		<?php if ( 'category' === $taxonomy ) : ?>
506 506
 		<p><?php _e( 'Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have children categories for Bebop and Big Band. Totally optional.' ); ?></p>
507
-	<?php else : ?>
508
-		<p><?php echo $tax->labels->parent_field_description; ?></p>
507
+	<?php else {
508
+    : ?>
509
+		<p><?php echo $tax->labels->parent_field_description;
510
+}
511
+?></p>
509 512
 	<?php endif; ?>
510 513
 </div>
511 514
 	<?php endif; // is_taxonomy_hierarchical() ?>
Please login to merge, or discard this patch.
wp/wp-admin/plugin-editor.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -288,7 +288,8 @@  discard block
 block discarded – undo
288 288
 			<?php submit_button( __( 'Update File' ), 'primary', 'submit', false ); ?>
289 289
 			<span class="spinner"></span>
290 290
 		</p>
291
-	<?php else : ?>
291
+	<?php else {
292
+    : ?>
292 293
 		<p>
293 294
 			<?php
294 295
 			printf(
@@ -296,6 +297,7 @@  discard block
 block discarded – undo
296 297
 				__( 'You need to make this file writable before you can save your changes. See <a href="%s">Changing File Permissions</a> for more information.' ),
297 298
 				__( 'https://wordpress.org/support/article/changing-file-permissions/' )
298 299
 			);
300
+}
299 301
 			?>
300 302
 		</p>
301 303
 	<?php endif; ?>
Please login to merge, or discard this patch.
wp/wp-admin/customize.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -195,8 +195,11 @@
 block discarded – undo
195 195
 					<?php submit_button( $save_text, 'primary save', 'save', false ); ?>
196 196
 					<button id="publish-settings" class="publish-settings button-primary button dashicons dashicons-admin-generic" aria-label="<?php esc_attr_e( 'Publish Settings' ); ?>" aria-expanded="false" disabled></button>
197 197
 				</div>
198
-			<?php else : ?>
199
-				<?php $save_text = _x( 'Cannot Activate', 'theme' ); ?>
198
+			<?php else {
199
+    : ?>
200
+				<?php $save_text = _x( 'Cannot Activate', 'theme' );
201
+}
202
+?>
200 203
 				<div id="customize-save-button-wrapper" class="customize-save-button-wrapper disabled" >
201 204
 					<button class="button button-primary disabled" aria-label="<?php esc_attr_e( 'Publish Settings' ); ?>" aria-expanded="false" disabled><?php echo $save_text; ?></button>
202 205
 				</div>
Please login to merge, or discard this patch.
wp/wp-admin/upgrade.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,10 +127,12 @@
 block discarded – undo
127 127
 	echo '<p>' . $message . '</p>';
128 128
 	?>
129 129
 	<?php
130
-else :
130
+else {
131
+    :
131 132
 	switch ( $step ) :
132 133
 		case 0:
133 134
 			$goback = wp_get_referer();
135
+}
134 136
 			if ( $goback ) {
135 137
 				$goback = esc_url_raw( $goback );
136 138
 				$goback = urlencode( $goback );
Please login to merge, or discard this patch.
wp/wp-admin/credits.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,10 +62,13 @@
 block discarded – undo
62 62
 				<a href="https://make.wordpress.org/"><?php _e( 'Get involved in WordPress.' ); ?></a>
63 63
 			</p>
64 64
 
65
-			<?php else : ?>
65
+			<?php else {
66
+    : ?>
66 67
 
67 68
 			<p>
68
-				<?php _e( 'Want to see your name in lights on this page?' ); ?>
69
+				<?php _e( 'Want to see your name in lights on this page?' );
70
+}
71
+?>
69 72
 				<br />
70 73
 				<a href="https://make.wordpress.org/"><?php _e( 'Get involved in WordPress.' ); ?></a>
71 74
 			</p>
Please login to merge, or discard this patch.