Make WordPress Core

Changeset 44979


Ignore:
Timestamp:
03/22/2019 12:59:25 AM (7 years ago)
Author:
SergeyBiryukov
Message:

PHPCS: Fix WPCS violations in [44978].

See #43992.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/plugin.php

    r44978 r44979  
    10971097
    10981098        if ( ! $plugin_data['wp_compatible'] && ! $plugin_data['php_compatible'] ) {
    1099                 return new WP_Error( 'plugin_wp_php_incompatible', sprintf(
    1100                         /* translators: %s: plugin name */
    1101                         __( '<strong>Error:</strong> Current WordPress and PHP versions do not meet minimum requirements for %s.' ), $plugin_data['Name'] )
     1099                return new WP_Error(
     1100                        'plugin_wp_php_incompatible',
     1101                        sprintf(
     1102                                /* translators: %s: plugin name */
     1103                                __( '<strong>Error:</strong> Current WordPress and PHP versions do not meet minimum requirements for %s.' ),
     1104                                $plugin_data['Name']
     1105                        )
    11021106                );
    11031107        } elseif ( ! $plugin_data['php_compatible'] ) {
    1104                 return new WP_Error( 'plugin_php_incompatible', sprintf(
    1105                         /* translators: %s: plugin name */
    1106                         __( '<strong>Error:</strong> Current PHP version does not meet minimum requirements for %s.' ), $plugin_data['Name'] )
     1108                return new WP_Error(
     1109                        'plugin_php_incompatible',
     1110                        sprintf(
     1111                                /* translators: %s: plugin name */
     1112                                __( '<strong>Error:</strong> Current PHP version does not meet minimum requirements for %s.' ),
     1113                                $plugin_data['Name']
     1114                        )
    11071115                );
    11081116        } elseif ( ! $plugin_data['wp_compatible'] ) {
    1109                 return new WP_Error( 'plugin_wp_incompatible', sprintf(
    1110                         /* translators: %s: plugin name */
    1111                         __( '<strong>Error:</strong> Current WordPress version does not meet minimum requirements for %s.' ), $plugin_data['Name'] )
     1117                return new WP_Error(
     1118                        'plugin_wp_incompatible',
     1119                        sprintf(
     1120                                /* translators: %s: plugin name */
     1121                                __( '<strong>Error:</strong> Current WordPress version does not meet minimum requirements for %s.' ),
     1122                                $plugin_data['Name']
     1123                        )
    11121124                );
    11131125        }
Note: See TracChangeset for help on using the changeset viewer.