Make WordPress Core

Changeset 53817


Ignore:
Timestamp:
08/03/2022 02:30:34 PM (23 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Remove extra space in two conditionals.

This fixes WPCS errors in WP_Site_Health::get_test_plugin_version() and ::get_test_theme_version():

  • Expected exactly one space between closing parenthesis and opening control structure; " " found.
  • Expected 1 space(s) after closing parenthesis; found 2

Follow-up to [53816].

See #56134.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-site-health.php

    r53816 r53817  
    429429                    __( 'Your site has 1 active plugin, and it is up to date.' )
    430430                );
    431             } elseif ( $plugins_active > 0 )  {
     431            } elseif ( $plugins_active > 0 ) {
    432432                $result['description'] .= sprintf(
    433433                    '<p>%s</p>',
     
    597597                    __( 'Your site has 1 installed theme, and it is up to date.' )
    598598                );
    599             } elseif ( $themes_total > 0 )  {
     599            } elseif ( $themes_total > 0 ) {
    600600                $result['description'] .= sprintf(
    601601                    '<p>%s</p>',
Note: See TracChangeset for help on using the changeset viewer.