From 68f7c2d7a56314fc36098dcede7b08dd2e53b98b Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 26 May 2019 19:04:58 +0000 Subject: [PATCH] I18N: Merge duplicate "Invalid post parent ID" strings. Props ramiy. Fixes #47270. git-svn-id: https://develop.svn.wordpress.org/trunk@45444 602fd350-edb4-49c9-b593-d223f7449a82 --- .../rest-api/endpoints/class-wp-rest-autosaves-controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php index 04da85b9cc..e55d3a3729 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php +++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php @@ -244,7 +244,7 @@ class WP_REST_Autosaves_Controller extends WP_REST_Revisions_Controller { $parent_id = (int) $request->get_param( 'parent' ); if ( $parent_id <= 0 ) { - return new WP_Error( 'rest_post_invalid_id', __( 'Invalid parent post ID.' ), array( 'status' => 404 ) ); + return new WP_Error( 'rest_post_invalid_id', __( 'Invalid post parent ID.' ), array( 'status' => 404 ) ); } $autosave = wp_get_post_autosave( $parent_id );