Changeset 3985 for trunk/wp-admin/post.php
- Timestamp:
- 07/05/2006 10:00:03 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/post.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/post.php
r3946 r3985 118 118 119 119 if ( !current_user_can('delete_post', $post_id) ) 120 die( __('You are not allowed to delete this post.') );120 wp_die( __('You are not allowed to delete this post.') ); 121 121 122 122 if ( $post->post_type == 'attachment' ) { 123 123 if ( ! wp_delete_attachment($post_id) ) 124 die( __('Error in deleting...') );124 wp_die( __('Error in deleting...') ); 125 125 } else { 126 126 if ( !wp_delete_post($post_id) ) 127 die( __('Error in deleting...') );127 wp_die( __('Error in deleting...') ); 128 128 } 129 129
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)