Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove whitespace
  • Loading branch information
rishishah-multidots committed Oct 3, 2024
commit 5e8a00cdaa0c15e3d71e0d0c9a8449644876d907
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ public function create_item( $request ) {

$prepared_comment['comment_approved'] = wp_allow_comment( $prepared_comment, true );
$prepared_comment['comment_approved'] = isset( $request['comment_approved'] ) ? $request['comment_approved'] : $prepared_comment['comment_approved'];

if ( is_wp_error( $prepared_comment['comment_approved'] ) ) {
$error_code = $prepared_comment['comment_approved']->get_error_code();
$error_message = $prepared_comment['comment_approved']->get_error_message();
Expand Down