diff --git a/src/wp-admin/includes/plugin.php b/src/wp-admin/includes/plugin.php
index f54717f804..2db58a7c15 100644
--- a/src/wp-admin/includes/plugin.php
+++ b/src/wp-admin/includes/plugin.php
@@ -1096,19 +1096,31 @@ function validate_plugin_requirements( $plugin ) {
$plugin_data = array_merge( $plugin_data, get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin ) );
if ( ! $plugin_data['wp_compatible'] && ! $plugin_data['php_compatible'] ) {
- return new WP_Error( 'plugin_wp_php_incompatible', sprintf(
- /* translators: %s: plugin name */
- __( 'Error: Current WordPress and PHP versions do not meet minimum requirements for %s.' ), $plugin_data['Name'] )
+ return new WP_Error(
+ 'plugin_wp_php_incompatible',
+ sprintf(
+ /* translators: %s: plugin name */
+ __( 'Error: Current WordPress and PHP versions do not meet minimum requirements for %s.' ),
+ $plugin_data['Name']
+ )
);
} elseif ( ! $plugin_data['php_compatible'] ) {
- return new WP_Error( 'plugin_php_incompatible', sprintf(
- /* translators: %s: plugin name */
- __( 'Error: Current PHP version does not meet minimum requirements for %s.' ), $plugin_data['Name'] )
+ return new WP_Error(
+ 'plugin_php_incompatible',
+ sprintf(
+ /* translators: %s: plugin name */
+ __( 'Error: Current PHP version does not meet minimum requirements for %s.' ),
+ $plugin_data['Name']
+ )
);
} elseif ( ! $plugin_data['wp_compatible'] ) {
- return new WP_Error( 'plugin_wp_incompatible', sprintf(
- /* translators: %s: plugin name */
- __( 'Error: Current WordPress version does not meet minimum requirements for %s.' ), $plugin_data['Name'] )
+ return new WP_Error(
+ 'plugin_wp_incompatible',
+ sprintf(
+ /* translators: %s: plugin name */
+ __( 'Error: Current WordPress version does not meet minimum requirements for %s.' ),
+ $plugin_data['Name']
+ )
);
}