Changeset 3510 for trunk/wp-admin/post.php
- Timestamp:
- 02/09/2006 10:03:48 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/post.php
r3473 r3510 24 24 25 25 // Fix submenu highlighting for pages. 26 if ( isset($_REQUEST['post']) && ' static' == get_post_status($_REQUEST['post']) )26 if ( isset($_REQUEST['post']) && 'page' == get_post_type($_REQUEST['post']) ) 27 27 $submenu_file = 'page-new.php'; 28 28 … … 51 51 } 52 52 53 if ( ' static' == $_POST['post_status'] )53 if ( 'page' == $_POST['post_type'] ) 54 54 $location = "page-new.php?saved=true"; 55 55 … … 73 73 $post = get_post_to_edit($post_ID); 74 74 75 if ($post->post_ status == 'static')75 if ($post->post_type == 'page') 76 76 include('edit-page-form.php'); 77 77 else … … 91 91 // Don't let these be changed 92 92 unset($_POST['guid']); 93 $_POST['post_ status'] = 'attachment';93 $_POST['post_type'] = 'attachment'; 94 94 95 95 // Update the thumbnail filename … … 135 135 die( __('You are not allowed to delete this post.') ); 136 136 137 if ( $post->post_ status== 'attachment' ) {137 if ( $post->post_type == 'attachment' ) { 138 138 if ( ! wp_delete_attachment($post_id) ) 139 139 die( __('Error in deleting...') );
Note: See TracChangeset
for help on using the changeset viewer.