I18N: Replace code fragments in translatable strings for rest_trash_not_supported errors with a placeholder.
Props ramiy. Fixes #41643. Built from https://develop.svn.wordpress.org/trunk@41588 git-svn-id: http://core.svn.wordpress.org/trunk@41421 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -810,7 +810,8 @@ class WP_REST_Comments_Controller extends WP_REST_Controller {
|
||||
} else {
|
||||
// If this type doesn't support trashing, error out.
|
||||
if ( ! $supports_trash ) {
|
||||
return new WP_Error( 'rest_trash_not_supported', __( 'The comment 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 comment does not support trashing. Set '%s' to delete." ), 'force=true' ), array( 'status' => 501 ) );
|
||||
}
|
||||
|
||||
if ( 'trash' === $comment->comment_approved ) {
|
||||
|
||||
Reference in New Issue
Block a user