From 6d489eb3cf0fa0abefccb457a80259300b75a2d3 Mon Sep 17 00:00:00 2001 From: Ramon Date: Mon, 20 Nov 2023 07:17:33 +1100 Subject: [PATCH] Apply suggestions from code review string replacement type signifier %d Co-authored-by: Daniel Bachhuber --- .../rest-api/endpoints/class-wp-rest-revisions-controller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php index 9351caa7bc214..605a4e984763e 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php +++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php @@ -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 ) ); }