I18N: Replace code fragments in translatable strings for rest_trash_not_supported errors with a placeholder.

Props ramiy.
Fixes #41643.

git-svn-id: https://develop.svn.wordpress.org/trunk@41588 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2017-09-24 22:28:56 +00:00
parent d3f791728f
commit b6c4a2309d
5 changed files with 10 additions and 5 deletions

View File

@@ -805,7 +805,8 @@ class WP_REST_Posts_Controller extends WP_REST_Controller {
} else {
// If we don't support trashing for this type, error out.
if ( ! $supports_trash ) {
return new WP_Error( 'rest_trash_not_supported', __( 'The post does not support trashing. Set force=true to delete.' ), array( 'status' => 501 ) );
/* translators: %s: force=true */
return new WP_Error( 'rest_trash_not_supported', sprintf( __( "The post does not support trashing. Set '%s' to delete." ), 'force=true' ), array( 'status' => 501 ) );
}
// Otherwise, only trash if we haven't already.