Skip to:
Content

BuddyPress.org

Ticket #8300: 8300.patch

File 8300.patch, 3.1 KB (added by man4toman, 5 years ago)
  • bp-activity/bp-activity-admin.php

     
    8585
    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
    9696        // if ( ! current_user_can( 'bp_new_activity' ) )
  • bp-members/bp-members-functions.php

     
    13641364        // The user exists; now do a check to see if the user is a spammer
    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
    13701370        // User is good to go!
     
    23372337        /* translators: %s: the activation url */
    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 );
    23432343
     
    23682368
    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' );
    23742374        }
     
    25132513function bp_live_spammer_login_error() {
    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!
    25192519        add_action( 'login_head', 'wp_shake_js', 12 );