Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
string replacement type signifier %d

Co-authored-by: Daniel Bachhuber <[email protected]>
  • Loading branch information
ramonjd and danielbachhuber authored Nov 19, 2023
1 parent f8bf0da commit 6d489eb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,8 @@ public function get_item( $request ) {
if ( (int) $parent->ID !== (int) $revision->post_parent ) {
return new WP_Error(
'rest_post_invalid_parent',
/* translators: %s: A post revision id. */
sprintf( __( 'Parent post does not have a revision with id of "%s"' ), $request['id'] ),
/* translators: %d: A post revision id. */
sprintf( __( 'Parent post does not have a revision with id of "%d"' ), $request['id'] ),
array( 'status' => 404 )
);
}
Expand Down

0 comments on commit 6d489eb

Please sign in to comment.