Make WordPress Core


Ignore:
Timestamp:
06/21/2020 01:58:46 PM (5 years ago)
Author:
afercia
Message:

I18N: Restore the "Error:" prefix for error messages.

Partially reverts [48059] as there's no full consensus on the removal of the text prefix. Further actions should be taken to improve consistency and accessibility of the admin notices. Keeps some improvements to the translatable strings from [48059].

Fixes #47656.

File:
1 edited

Legend:

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

    r48110 r48115  
    802802    if ( ! $compatible_php ) {
    803803        echo '<div class="notice notice-error notice-alt"><p>';
    804         _e( 'This plugin <strong>requires a newer version of PHP</strong>.' );
     804        _e( '<strong>Error:</strong> This plugin <strong>requires a newer version of PHP</strong>.' );
    805805        if ( current_user_can( 'update_php' ) ) {
    806806            printf(
     
    823823    } elseif ( ! $compatible_wp ) {
    824824        echo '<div class="notice notice-error notice-alt"><p>';
    825         _e( 'This plugin <strong>requires a newer version of WordPress</strong>.' );
     825        _e( '<strong>Error:</strong> This plugin <strong>requires a newer version of WordPress</strong>.' );
    826826        if ( current_user_can( 'update_core' ) ) {
    827827            printf(
Note: See TracChangeset for help on using the changeset viewer.