Changeset 26543
- Timestamp:
- 12/02/2013 10:58:40 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r26329 r26543 2336 2336 2337 2337 do_action( 'delete_post', $postid ); 2338 $wpdb->delete( $wpdb->posts, array( 'ID' => $postid ) ); 2338 $result = $wpdb->delete( $wpdb->posts, array( 'ID' => $postid ) ); 2339 if ( ! $result ) { 2340 return false; 2341 } 2339 2342 do_action( 'deleted_post', $postid ); 2340 2343 … … 4182 4185 4183 4186 do_action( 'delete_post', $post_id ); 4184 $wpdb->delete( $wpdb->posts, array( 'ID' => $post_id ) ); 4187 $result = $wpdb->delete( $wpdb->posts, array( 'ID' => $post_id ) ); 4188 if ( ! $result ) { 4189 return false; 4190 } 4185 4191 do_action( 'deleted_post', $post_id ); 4186 4192
Note: See TracChangeset
for help on using the changeset viewer.