Skip to:
Content

bbPress.org


Ignore:
Timestamp:
06/04/2020 09:28:24 PM (5 years ago)
Author:
johnjamesjacoby
Message:

Accessibility: Text Changes: Use sentence case for the word "Error" in various error messages, instead of all caps.

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

Related to [WP47156], #WP47656, #WP43037, #WP42945.

Props casiepa, man4toman, mmeet94, SergeyBiryukov, afercia, ryokuhi, sabernhardt, garrett-eclipse.

In branches/2.6, for 2.6.6.

See #3333, #3377.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/src/includes/users/signups.php

    r7087 r7097  
    207207    // Add error if role is empty
    208208    if ( empty( $to_validate ) ) {
    209         bbp_add_error( 'bbp_signup_role_empty', __( '<strong>ERROR</strong>: Empty role.', 'bbpress' ) );
     209        bbp_add_error( 'bbp_signup_role_empty', __( '<strong>Error</strong>: Empty role.', 'bbpress' ) );
    210210    }
    211211
    212212    // Add error if posted role is not a valid role
    213213    if ( ! bbp_is_valid_role( $to_validate ) ) {
    214         bbp_add_error( 'bbp_signup_role_invalid', __( '<strong>ERROR</strong>: Invalid role.', 'bbpress' ) );
     214        bbp_add_error( 'bbp_signup_role_invalid', __( '<strong>Error</strong>: Invalid role.', 'bbpress' ) );
    215215    }
    216216
Note: See TracChangeset for help on using the changeset viewer.