Changeset 41588
- Timestamp:
- 09/24/2017 10:28:56 PM (8 years ago)
- Location:
- trunk/src/wp-includes/rest-api/endpoints
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
r41162 r41588 811 811 // If this type doesn't support trashing, error out. 812 812 if ( ! $supports_trash ) { 813 return new WP_Error( 'rest_trash_not_supported', __( 'The comment does not support trashing. Set force=true to delete.' ), array( 'status' => 501 ) ); 813 /* translators: %s: force=true */ 814 return new WP_Error( 'rest_trash_not_supported', sprintf( __( "The comment does not support trashing. Set '%s' to delete." ), 'force=true' ), array( 'status' => 501 ) ); 814 815 } 815 816 -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r41219 r41588 806 806 // If we don't support trashing for this type, error out. 807 807 if ( ! $supports_trash ) { 808 return new WP_Error( 'rest_trash_not_supported', __( 'The post does not support trashing. Set force=true to delete.' ), array( 'status' => 501 ) ); 808 /* translators: %s: force=true */ 809 return new WP_Error( 'rest_trash_not_supported', sprintf( __( "The post does not support trashing. Set '%s' to delete." ), 'force=true' ), array( 'status' => 501 ) ); 809 810 } 810 811 -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php
r41354 r41588 289 289 // We don't support trashing for revisions. 290 290 if ( ! $force ) { 291 return new WP_Error( 'rest_trash_not_supported', __( 'Revisions do not support trashing. Set force=true to delete.' ), array( 'status' => 501 ) ); 291 /* translators: %s: force=true */ 292 return new WP_Error( 'rest_trash_not_supported', sprintf( __( "Revisions do not support trashing. Set '%s' to delete." ), 'force=true' ), array( 'status' => 501 ) ); 292 293 } 293 294 -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
r41162 r41588 576 576 // We don't support trashing for terms. 577 577 if ( ! $force ) { 578 return new WP_Error( 'rest_trash_not_supported', __( 'Terms do not support trashing. Set force=true to delete.' ), array( 'status' => 501 ) ); 578 /* translators: %s: force=true */ 579 return new WP_Error( 'rest_trash_not_supported', sprintf( __( "Terms do not support trashing. Set '%s' to delete." ), 'force=true' ), array( 'status' => 501 ) ); 579 580 } 580 581 -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
r41226 r41588 741 741 // We don't support trashing for users. 742 742 if ( ! $force ) { 743 return new WP_Error( 'rest_trash_not_supported', __( 'Users do not support trashing. Set force=true to delete.' ), array( 'status' => 501 ) ); 743 /* translators: %s: force=true */ 744 return new WP_Error( 'rest_trash_not_supported', sprintf( __( "Users do not support trashing. Set '%s' to delete." ), 'force=true' ), array( 'status' => 501 ) ); 744 745 } 745 746
Note: See TracChangeset
for help on using the changeset viewer.