Skip to:
Content

bbPress.org

Changeset 7037


Ignore:
Timestamp:
12/13/2019 10:03:22 PM (7 years ago)
Author:
johnjamesjacoby
Message:

Strings: improve consistency of "ERROR" messaging.

This commit moves a few colons from within their respective <strong> tag to outside of them, making them consistent with a few dozen other usages.

Props casiepa. Fixes #3302. For 2.7, trunk.

Location:
trunk/src/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/replies/functions.php

    r7007 r7037  
    14881488        $reply = bbp_get_reply( $reply_id );
    14891489        if ( empty( $reply ) ) {
    1490                 bbp_add_error( 'bbp_toggle_reply_missing', __( '<strong>ERROR:</strong> This reply could not be found or no longer exists.', 'bbpress' ) );
     1490                bbp_add_error( 'bbp_toggle_reply_missing', __( '<strong>ERROR</strong>: This reply could not be found or no longer exists.', 'bbpress' ) );
    14911491                return;
    14921492        }
     
    14941494        // What is the user doing here?
    14951495        if ( ! current_user_can( 'edit_reply', $reply_id ) || ( 'bbp_toggle_reply_trash' === $action && ! current_user_can( 'delete_reply', $reply_id ) ) ) {
    1496                 bbp_add_error( 'bbp_toggle_reply_permission', __( '<strong>ERROR:</strong> You do not have permission to do that.', 'bbpress' ) );
     1496                bbp_add_error( 'bbp_toggle_reply_permission', __( '<strong>ERROR</strong>: You do not have permission to do that.', 'bbpress' ) );
    14971497                return;
    14981498        }
  • trunk/src/includes/topics/functions.php

    r7006 r7037  
    20182018        $topic = bbp_get_topic( $topic_id );
    20192019        if ( empty( $topic ) ) {
    2020                 bbp_add_error( 'bbp_toggle_topic_missing', __( '<strong>ERROR:</strong> This topic could not be found or no longer exists.', 'bbpress' ) );
     2020                bbp_add_error( 'bbp_toggle_topic_missing', __( '<strong>ERROR</strong>: This topic could not be found or no longer exists.', 'bbpress' ) );
    20212021                return;
    20222022        }
     
    20242024        // What is the user doing here?
    20252025        if ( ! current_user_can( 'edit_topic', $topic_id ) || ( 'bbp_toggle_topic_trash' === $action && ! current_user_can( 'delete_topic', $topic_id ) ) ) {
    2026                 bbp_add_error( 'bbp_toggle_topic_permission', __( '<strong>ERROR:</strong> You do not have permission to do that.', 'bbpress' ) );
     2026                bbp_add_error( 'bbp_toggle_topic_permission', __( '<strong>ERROR</strong>: You do not have permission to do that.', 'bbpress' ) );
    20272027                return;
    20282028        }
Note: See TracChangeset for help on using the changeset viewer.