Skip to content

Commit

Permalink
Merge pull request #1430 from goldenapples/update-comment-status-tran…
Browse files Browse the repository at this point in the history
…sition-log-messages

Update audit log message for comments transitioning status
  • Loading branch information
kasparsd authored Sep 13, 2023
2 parents aaf43ea + 32db2ba commit 2de9866
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions connectors/class-connector-comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -591,10 +591,10 @@ public function callback_transition_comment_status( $new_status, $old_status, $c
$comment_type = get_comment_type( $comment->comment_ID );

$this->log(
/* translators: %1$s: a comment author, %2$s: a post title, %3$s: a comment type */
/* translators: %1$s: comment author, %2$s: comment status, %3$s: comment type, %4$s: old comment status, %5$s: post title */
_x(
'%1$s\'s %3$s %2$s',
'Comment status transition. 1: Comment author, 2: Post title, 3: Comment type',
'%1$s\'s %3$s on "%5$s" %2$s',
'Comment status transition. 1: Comment author, 2: New status, 3: Comment type, 4. Old status, 5. Post title',
'stream'
),
compact( 'user_name', 'new_status', 'comment_type', 'old_status', 'post_title', 'post_id', 'user_id' ),
Expand Down

0 comments on commit 2de9866

Please sign in to comment.