Skip to:
Content

BuddyPress.org


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

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.