@@ -205,8 +205,11 @@ discard block |
||
| 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( '← Go to Users' ); ?></a></p> |
@@ -443,8 +446,11 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | |
@@ -424,13 +424,15 @@ discard block |
||
| 424 | 424 | })(); |
| 425 | 425 | </script> |
| 426 | 426 | <?php |
| 427 | - else : |
|
| 427 | + else { |
|
| 428 | + : |
|
| 428 | 429 | /* |
| 429 | 430 | * If this file doesn't exist, then we are using the wp-config-sample.php |
| 430 | 431 | * file one level up, which is for the develop repo. |
| 431 | 432 | */ |
| 432 | 433 | if ( file_exists( ABSPATH . 'wp-config-sample.php' ) ) { |
| 433 | 434 | $path_to_wp_config = ABSPATH . 'wp-config.php'; |
| 435 | + } |
|
| 434 | 436 | } else { |
| 435 | 437 | $path_to_wp_config = dirname( ABSPATH ) . '/wp-config.php'; |
| 436 | 438 | } |
@@ -475,8 +477,10 @@ discard block |
||
| 475 | 477 | |
| 476 | 478 | <p class="step"><a href="<?php echo $install; ?>" class="button button-large"><?php _e( 'Run the installation' ); ?></a></p> |
| 477 | 479 | <?php |
| 478 | - else : |
|
| 480 | + else { |
|
| 481 | + : |
|
| 479 | 482 | printf( '<p>%s</p>', $error_message ); |
| 483 | + } |
|
| 480 | 484 | endif; |
| 481 | 485 | endif; |
| 482 | 486 | break; |
@@ -160,9 +160,12 @@ |
||
| 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> |
@@ -343,8 +343,11 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -399,11 +399,15 @@ discard block |
||
| 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 |
||
| 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. */ |
@@ -215,7 +215,8 @@ discard block |
||
| 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 |
||
| 225 | 226 | __( 'https://wordpress.org/support/article/update-services/' ), |
| 226 | 227 | 'options-reading.php' |
| 227 | 228 | ); |
| 229 | +} |
|
| 228 | 230 | ?> |
| 229 | 231 | </p> |
| 230 | 232 | |
@@ -153,8 +153,11 @@ discard block |
||
| 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 |
||
| 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 ); ?>" /> |
@@ -400,8 +400,11 @@ |
||
| 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; ?> |
@@ -650,8 +650,10 @@ discard block |
||
| 650 | 650 | 'content' => $editing_menus, |
| 651 | 651 | ) |
| 652 | 652 | ); |
| 653 | -else : // Locations tab. |
|
| 653 | +else { |
|
| 654 | + : // Locations tab. |
|
| 654 | 655 | $locations_overview = '<p>' . __( 'This screen is used for globally assigning menus to locations defined by your theme.' ) . '</p>'; |
| 656 | +} |
|
| 655 | 657 | $locations_overview .= '<ul><li>' . __( 'To assign menus to one or more theme locations, <strong>select a menu from each location’s drop down.</strong> When you are finished, <strong>click Save Changes</strong>' ) . '</li>'; |
| 656 | 658 | $locations_overview .= '<li>' . __( 'To edit a menu currently assigned to a theme location, <strong>click the adjacent ’Edit’ link</strong>' ) . '</li>'; |
| 657 | 659 | $locations_overview .= '<li>' . __( 'To add a new menu instead of assigning an existing one, <strong>click the ’Use new menu’ link</strong>. Your new menu will be automatically assigned to that theme location' ) . '</li></ul>'; |
@@ -830,11 +832,14 @@ discard block |
||
| 830 | 832 | */ |
| 831 | 833 | do_action( 'after_menu_locations_table' ); |
| 832 | 834 | ?> |
| 833 | - <?php else : ?> |
|
| 835 | + <?php else { |
|
| 836 | + : ?> |
|
| 834 | 837 | <div class="manage-menus"> |
| 835 | 838 | <?php if ( $menu_count < 1 ) : ?> |
| 836 | 839 | <span class="first-menu-message"> |
| 837 | - <?php _e( 'Create your first menu below.' ); ?> |
|
| 840 | + <?php _e( 'Create your first menu below.' ); |
|
| 841 | +} |
|
| 842 | +?> |
|
| 838 | 843 | <span class="screen-reader-text"><?php _e( 'Fill in the Menu Name and click the Create Menu button to create your first menu.' ); ?></span> |
| 839 | 844 | </span><!-- /first-menu-message --> |
| 840 | 845 | <?php elseif ( $menu_count < 2 ) : ?> |
@@ -856,8 +861,11 @@ discard block |
||
| 856 | 861 | ?> |
| 857 | 862 | <span class="screen-reader-text"><?php _e( 'Click the Save Menu button to save your changes.' ); ?></span> |
| 858 | 863 | </span><!-- /add-edit-menu-action --> |
| 859 | - <?php else : ?> |
|
| 860 | - <form method="get" action="<?php echo esc_url( admin_url( 'nav-menus.php' ) ); ?>"> |
|
| 864 | + <?php else { |
|
| 865 | + : ?> |
|
| 866 | + <form method="get" action="<?php echo esc_url( admin_url( 'nav-menus.php' ) ); |
|
| 867 | +} |
|
| 868 | +?>"> |
|
| 861 | 869 | <input type="hidden" name="action" value="edit" /> |
| 862 | 870 | <label for="select-menu-to-edit" class="selected-menu"><?php _e( 'Select a menu to edit:' ); ?></label> |
| 863 | 871 | <select name="menu" id="select-menu-to-edit"> |
@@ -1117,7 +1125,8 @@ discard block |
||
| 1117 | 1125 | <span class="cancel-action"> |
| 1118 | 1126 | <a class="submitcancel cancellation menu-cancel" href="<?php echo esc_url( admin_url( 'nav-menus.php' ) ); ?>"><?php _e( 'Cancel' ); ?></a> |
| 1119 | 1127 | </span><!-- END .cancel-action --> |
| 1120 | - <?php else : ?> |
|
| 1128 | + <?php else { |
|
| 1129 | + : ?> |
|
| 1121 | 1130 | <span class="delete-action"> |
| 1122 | 1131 | <a class="submitdelete deletion menu-delete" href=" |
| 1123 | 1132 | <?php |
@@ -1133,6 +1142,7 @@ discard block |
||
| 1133 | 1142 | 'delete-nav_menu-' . $nav_menu_selected_id |
| 1134 | 1143 | ) |
| 1135 | 1144 | ); |
| 1145 | +} |
|
| 1136 | 1146 | ?> |
| 1137 | 1147 | "><?php _e( 'Delete Menu' ); ?></a> |
| 1138 | 1148 | </span><!-- END .delete-action --> |