Changeset 4780
- Timestamp:
- 01/22/2007 08:16:58 AM (18 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/page.php
r4656 r4780 45 45 $page_ID = $post_ID = $p = (int) $_GET['post']; 46 46 $post = get_post_to_edit($page_ID); 47 48 if ( 'post' == $post->post_type ) { 49 wp_redirect("post.php?action=edit&post=$post_ID"); 50 exit(); 51 } 52 47 53 if($post->post_status == 'draft') { 48 54 wp_enqueue_script('prototype'); -
trunk/wp-admin/post.php
r4656 r4780 48 48 $post_ID = $p = (int) $_GET['post']; 49 49 $post = get_post($post_ID); 50 51 if ( 'page' == $post->post_type ) { 52 wp_redirect("page.php?action=edit&post=$post_ID"); 53 exit(); 54 } 55 50 56 if($post->post_status == 'draft') { 51 57 wp_enqueue_script('prototype');
Note: See TracChangeset
for help on using the changeset viewer.