- Timestamp:
- 02/10/2020 04:10:09 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r47122 r47233 117 117 'type' => 'boolean', 118 118 'default' => false, 119 'description' => __( 'Whether to bypass trash and force deletion.' ),119 'description' => __( 'Whether to bypass Trash and force deletion.' ), 120 120 ), 121 121 ), … … 887 887 * The dynamic portion of the hook name, `$this->post_type`, refers to the post type slug. 888 888 * 889 * Pass false to disable trash support for the post.889 * Pass false to disable Trash support for the post. 890 890 * 891 891 * @since 4.7.0 … … 938 938 939 939 // (Note that internally this falls through to `wp_delete_post()` 940 // if the trash is disabled.)940 // if the Trash is disabled.) 941 941 $result = wp_trash_post( $id ); 942 942 $post = get_post( $id );
Note: See TracChangeset
for help on using the changeset viewer.