Skip to:
Content

BuddyPress.org

Changeset 12657


Ignore:
Timestamp:
05/16/2020 12:14:41 PM (6 years ago)
Author:
imath
Message:

A11y: Use sentence case for the word Error in some error messages

Using all caps should be avoided for better readability and because screen readers may pronounce all-caps words as abbreviations.

Props man4toman

Fixes #8300

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-admin.php

    r12586 r12657  
    8686        // Check that a reply has been entered.
    8787        if ( empty( $_REQUEST['content'] ) )
    88                 die( __( 'ERROR: Please type a reply.', 'buddypress' ) );
     88                die( __( 'Error: Please type a reply.', 'buddypress' ) );
    8989
    9090        // Check parent activity exists.
    9191        $parent_activity = new BP_Activity_Activity( $parent_id );
    9292        if ( empty( $parent_activity->component ) )
    93                 die( __( 'ERROR: The item you are trying to reply to cannot be found, or it has been deleted.', 'buddypress' ) );
     93                die( __( 'Error: The item you are trying to reply to cannot be found, or it has been deleted.', 'buddypress' ) );
    9494
    9595        // @todo: Check if user is allowed to create new activity items
  • trunk/src/bp-members/bp-members-functions.php

    r12605 r12657  
    13651365        // if the user is a spammer, stop them in their tracks!
    13661366        if ( is_a( $user, 'WP_User' ) && ( ( is_multisite() && (int) $user->spam ) || 1 == $user->user_status ) ) {
    1367                 return new WP_Error( 'invalid_username', __( '<strong>ERROR</strong>: Your account has been marked as a spammer.', 'buddypress' ) );
     1367                return new WP_Error( 'invalid_username', __( '<strong>Error</strong>: Your account has been marked as a spammer.', 'buddypress' ) );
    13681368        }
    13691369
     
    23382338        $resend_string .= sprintf( __( 'If you have not received an email yet, <a href="%s">click here to resend it</a>.', 'buddypress' ), esc_url( $resend_url ) );
    23392339
    2340         return new WP_Error( 'bp_account_not_activated', __( '<strong>ERROR</strong>: Your account has not been activated. Check your email for the activation link.', 'buddypress' ) . $resend_string );
     2340        return new WP_Error( 'bp_account_not_activated', __( '<strong>Error</strong>: Your account has not been activated. Check your email for the activation link.', 'buddypress' ) . $resend_string );
    23412341}
    23422342add_filter( 'authenticate', 'bp_core_signup_disable_inactive', 30, 3 );
     
    23692369        // Add feedback message.
    23702370        if ( ! empty( $resend['errors'] ) ) {
    2371                 $error = __( '<strong>ERROR</strong>: Your account has already been activated.', 'buddypress' );
     2371                $error = __( '<strong>Error</strong>: Your account has already been activated.', 'buddypress' );
    23722372        } else {
    23732373                $error = __( 'Activation email resent! Please check your inbox or spam folder.', 'buddypress' );
     
    25142514        global $error;
    25152515
    2516         $error = __( '<strong>ERROR</strong>: Your account has been marked as a spammer.', 'buddypress' );
     2516        $error = __( '<strong>Error</strong>: Your account has been marked as a spammer.', 'buddypress' );
    25172517
    25182518        // Shake shake shake!
Note: See TracChangeset for help on using the changeset viewer.