mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
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:
@@ -740,7 +740,8 @@ class WP_REST_Users_Controller extends WP_REST_Controller {
|
||||
|
||||
// We don't support trashing for users.
|
||||
if ( ! $force ) {
|
||||
return new WP_Error( 'rest_trash_not_supported', __( 'Users do not support trashing. Set force=true to delete.' ), array( 'status' => 501 ) );
|
||||
/* translators: %s: force=true */
|
||||
return new WP_Error( 'rest_trash_not_supported', sprintf( __( "Users do not support trashing. Set '%s' to delete." ), 'force=true' ), array( 'status' => 501 ) );
|
||||
}
|
||||
|
||||
if ( ! empty( $reassign ) ) {
|
||||
|
||||
Reference in New Issue
Block a user