Skip to content

Commit

Permalink
Update audit log message for comments transitioning status
Browse files Browse the repository at this point in the history
This adds the post title to the audit log text for comments that are
transitioning status, to be consistent with the other messages in the
comments connector.
  • Loading branch information
goldenapples committed Apr 20, 2023
1 parent 3a418c4 commit a143d50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions connectors/class-connector-comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -593,8 +593,8 @@ public function callback_transition_comment_status( $new_status, $old_status, $c
$this->log(
/* translators: %1$s: a comment author, %2$s: a post title, %3$s: a comment type */
_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 "%3$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 a143d50

Please sign in to comment.