@@ -855,10 +855,12 @@ discard block |
||
855 | 855 | </p> |
856 | 856 | |
857 | 857 | <?php |
858 | - else : |
|
858 | + else { |
|
859 | + : |
|
859 | 860 | switch ( $comment->comment_type ) { |
860 | 861 | case 'pingback': |
861 | 862 | $type = __( 'Pingback' ); |
863 | + } |
|
862 | 864 | break; |
863 | 865 | case 'trackback': |
864 | 866 | $type = __( 'Trackback' ); |
@@ -1921,8 +1923,11 @@ discard block |
||
1921 | 1923 | <div class="site-health-progress-label"> |
1922 | 1924 | <?php if ( false === $get_issues ) : ?> |
1923 | 1925 | <?php _e( 'No information yet…' ); ?> |
1924 | - <?php else : ?> |
|
1925 | - <?php _e( 'Results are still loading…' ); ?> |
|
1926 | + <?php else { |
|
1927 | + : ?> |
|
1928 | + <?php _e( 'Results are still loading…' ); |
|
1929 | +} |
|
1930 | +?> |
|
1926 | 1931 | <?php endif; ?> |
1927 | 1932 | </div> |
1928 | 1933 | </div> |
@@ -1938,18 +1943,24 @@ discard block |
||
1938 | 1943 | ); |
1939 | 1944 | ?> |
1940 | 1945 | </p> |
1941 | - <?php else : ?> |
|
1946 | + <?php else { |
|
1947 | + : ?> |
|
1942 | 1948 | <p> |
1943 | 1949 | <?php if ( $issues_total <= 0 ) : ?> |
1944 | - <?php _e( 'Great job! Your site currently passes all site health checks.' ); ?> |
|
1950 | + <?php _e( 'Great job! Your site currently passes all site health checks.' ); |
|
1951 | +} |
|
1952 | +?> |
|
1945 | 1953 | <?php elseif ( 1 === (int) $issue_counts['critical'] ) : ?> |
1946 | 1954 | <?php _e( 'Your site has a critical issue that should be addressed as soon as possible to improve its performance and security.' ); ?> |
1947 | 1955 | <?php elseif ( $issue_counts['critical'] > 1 ) : ?> |
1948 | 1956 | <?php _e( 'Your site has critical issues that should be addressed as soon as possible to improve its performance and security.' ); ?> |
1949 | 1957 | <?php elseif ( 1 === (int) $issue_counts['recommended'] ) : ?> |
1950 | 1958 | <?php _e( 'Your site’s health is looking good, but there is still one thing you can do to improve its performance and security.' ); ?> |
1951 | - <?php else : ?> |
|
1952 | - <?php _e( 'Your site’s health is looking good, but there are still some things you can do to improve its performance and security.' ); ?> |
|
1959 | + <?php else { |
|
1960 | + : ?> |
|
1961 | + <?php _e( 'Your site’s health is looking good, but there are still some things you can do to improve its performance and security.' ); |
|
1962 | +} |
|
1963 | +?> |
|
1953 | 1964 | <?php endif; ?> |
1954 | 1965 | </p> |
1955 | 1966 | <?php endif; ?> |
@@ -2025,8 +2036,11 @@ discard block |
||
2025 | 2036 | <h3><?php _e( 'Customize your entire site with block themes' ); ?></h3> |
2026 | 2037 | <p><?php _e( 'Design everything on your site — from the header down to the footer, all using blocks and patterns.' ); ?></p> |
2027 | 2038 | <a href="<?php echo esc_url( admin_url( 'site-editor.php' ) ); ?>"><?php _e( 'Open site editor' ); ?></a> |
2028 | - <?php else : ?> |
|
2029 | - <h3><?php _e( 'Start Customizing' ); ?></h3> |
|
2039 | + <?php else { |
|
2040 | + : ?> |
|
2041 | + <h3><?php _e( 'Start Customizing' ); |
|
2042 | +} |
|
2043 | +?></h3> |
|
2030 | 2044 | <p><?php _e( 'Configure your site’s logo, header, menus, and more in the Customizer.' ); ?></p> |
2031 | 2045 | <?php if ( $can_customize ) : ?> |
2032 | 2046 | <a class="load-customize hide-if-no-customize" href="<?php echo wp_customize_url(); ?>"><?php _e( 'Open the Customizer' ); ?></a> |
@@ -2041,8 +2055,11 @@ discard block |
||
2041 | 2055 | <h3><?php _e( 'Switch up your site’s look & feel with Styles' ); ?></h3> |
2042 | 2056 | <p><?php _e( 'Tweak your site, or give it a whole new look! Get creative — how about a new color palette or font?' ); ?></p> |
2043 | 2057 | <a href="<?php echo esc_url( admin_url( 'site-editor.php?styles=open' ) ); ?>"><?php _e( 'Edit styles' ); ?></a> |
2044 | - <?php else : ?> |
|
2045 | - <h3><?php _e( 'Discover a new way to build your site.' ); ?></h3> |
|
2058 | + <?php else { |
|
2059 | + : ?> |
|
2060 | + <h3><?php _e( 'Discover a new way to build your site.' ); |
|
2061 | +} |
|
2062 | +?></h3> |
|
2046 | 2063 | <p><?php _e( 'There is a new kind of WordPress theme, called a block theme, that lets you build the site you’ve always wanted — with blocks and styles.' ); ?></p> |
2047 | 2064 | <a href="<?php echo esc_url( __( 'https://wordpress.org/support/article/block-themes/' ) ); ?>"><?php _e( 'Learn about block themes' ); ?></a> |
2048 | 2065 | <?php endif; ?> |
@@ -77,9 +77,11 @@ discard block |
||
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 |
||
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; ?> |
@@ -504,8 +504,11 @@ |
||
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() ?> |
@@ -62,10 +62,13 @@ |
||
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> |
@@ -288,7 +288,8 @@ discard block |
||
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 |
||
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; ?> |
@@ -194,8 +194,11 @@ |
||
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> |
@@ -336,8 +336,11 @@ |
||
336 | 336 | <span class="widget-control-close-wrapper"> |
337 | 337 | | <a href="widgets.php" class="button-link widget-control-close"><?php _e( 'Cancel' ); ?></a> |
338 | 338 | </span> |
339 | - <?php else : ?> |
|
340 | - <a href="widgets.php" class="button-link widget-control-close"><?php _e( 'Cancel' ); ?></a> |
|
339 | + <?php else { |
|
340 | + : ?> |
|
341 | + <a href="widgets.php" class="button-link widget-control-close"><?php _e( 'Cancel' ); |
|
342 | +} |
|
343 | +?></a> |
|
341 | 344 | <?php endif; ?> |
342 | 345 | </div> |
343 | 346 | <div class="alignright"> |
@@ -127,10 +127,12 @@ |
||
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 ); |
@@ -165,10 +165,13 @@ |
||
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; ?> |