Changeset 60906 for trunk/src/wp-includes/post.php
- Timestamp:
- 10/06/2025 08:11:21 PM (2 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/post.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r60792 r60906 3744 3744 * @see wp_trash_post() 3745 3745 * 3746 * @param int $post_id Optional. Post ID. Default 0.3746 * @param int $post_id Post ID. (The default of 0 is for historical reasons; providing it is incorrect.) 3747 3747 * @param bool $force_delete Optional. Whether to bypass Trash and force deletion. 3748 3748 * Default false. … … 3751 3751 function wp_delete_post( $post_id = 0, $force_delete = false ) { 3752 3752 global $wpdb; 3753 3754 $post_id = (int) $post_id; 3755 if ( $post_id <= 0 ) { 3756 _doing_it_wrong( __FUNCTION__, __( 'The post ID must be greater than 0.' ), '6.9.0' ); 3757 return false; 3758 } 3753 3759 3754 3760 $post = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->posts WHERE ID = %d", $post_id ) ); … … 3776 3782 * @since 4.4.0 3777 3783 * 3778 * @param WP_Post|false|null $ delete Whether to go forward withdeletion.3784 * @param WP_Post|false|null $check Whether to go forward with deletion. Anything other than null will short-circuit deletion. 3779 3785 * @param WP_Post $post Post object. 3780 3786 * @param bool $force_delete Whether to bypass the Trash.
Note: See TracChangeset
for help on using the changeset viewer.