Skip to content

Commit

Permalink
Edit an Ajax error message to improve its consistency with other ones
Browse files Browse the repository at this point in the history
  • Loading branch information
imath committed Jul 12, 2022
1 parent 58d049a commit 237b250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _inc/ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ function bp_dtheme_post_update() {
}

if ( false === $activity_id ) {
exit( '-1<div id="message" class="error"><p>' . __( 'There was a problem posting your update, please try again.', 'buddypress' ) . '</p></div>' );
exit( '-1<div id="message" class="error"><p>' . __( 'There was a problem posting your update. Please try again.', 'buddypress' ) . '</p></div>' );
} elseif ( is_wp_error( $activity_id ) && $activity_id->get_error_code() ) {
exit( '-1<div id="message" class="error bp-ajax-message"><p>' . $activity_id->get_error_message() . '</p></div>' );
}
Expand Down

0 comments on commit 237b250

Please sign in to comment.