Ticket #8300: 8300.patch
File 8300.patch, 3.1 KB (added by , 5 years ago) |
---|
-
bp-activity/bp-activity-admin.php
85 85 86 86 // Check that a reply has been entered. 87 87 if ( empty( $_REQUEST['content'] ) ) 88 die( __( 'E RROR: Please type a reply.', 'buddypress' ) );88 die( __( 'Error: Please type a reply.', 'buddypress' ) ); 89 89 90 90 // Check parent activity exists. 91 91 $parent_activity = new BP_Activity_Activity( $parent_id ); 92 92 if ( empty( $parent_activity->component ) ) 93 die( __( 'E RROR: 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' ) ); 94 94 95 95 // @todo: Check if user is allowed to create new activity items 96 96 // if ( ! current_user_can( 'bp_new_activity' ) ) -
bp-members/bp-members-functions.php
1364 1364 // The user exists; now do a check to see if the user is a spammer 1365 1365 // if the user is a spammer, stop them in their tracks! 1366 1366 if ( is_a( $user, 'WP_User' ) && ( ( is_multisite() && (int) $user->spam ) || 1 == $user->user_status ) ) { 1367 return new WP_Error( 'invalid_username', __( '<strong>E RROR</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' ) ); 1368 1368 } 1369 1369 1370 1370 // User is good to go! … … 2337 2337 /* translators: %s: the activation url */ 2338 2338 $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 ) ); 2339 2339 2340 return new WP_Error( 'bp_account_not_activated', __( '<strong>E RROR</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 ); 2341 2341 } 2342 2342 add_filter( 'authenticate', 'bp_core_signup_disable_inactive', 30, 3 ); 2343 2343 … … 2368 2368 2369 2369 // Add feedback message. 2370 2370 if ( ! empty( $resend['errors'] ) ) { 2371 $error = __( '<strong>E RROR</strong>: Your account has already been activated.', 'buddypress' );2371 $error = __( '<strong>Error</strong>: Your account has already been activated.', 'buddypress' ); 2372 2372 } else { 2373 2373 $error = __( 'Activation email resent! Please check your inbox or spam folder.', 'buddypress' ); 2374 2374 } … … 2513 2513 function bp_live_spammer_login_error() { 2514 2514 global $error; 2515 2515 2516 $error = __( '<strong>E RROR</strong>: Your account has been marked as a spammer.', 'buddypress' );2516 $error = __( '<strong>Error</strong>: Your account has been marked as a spammer.', 'buddypress' ); 2517 2517 2518 2518 // Shake shake shake! 2519 2519 add_action( 'login_head', 'wp_shake_js', 12 );