Changeset 4082 for trunk/wp-admin/page.php
- Timestamp:
- 08/11/2006 03:54:45 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/page.php
r3985 r4082 43 43 $title = __('Edit'); 44 44 $editing = true; 45 $page_ID = $post_ID = $p = (int) $_GET['post']; 46 $post = get_post_to_edit($page_ID); 47 if($post->post_status == 'draft') { 48 wp_enqueue_script('prototype'); 49 wp_enqueue_script('autosave'); 50 } 45 51 require_once('admin-header.php'); 46 47 $page_ID = $post_ID = $p = (int) $_GET['post'];48 52 49 53 if ( !current_user_can('edit_page', $page_ID) ) 50 54 die ( __('You are not allowed to edit this page.') ); 51 52 $post = get_post_to_edit($page_ID);53 55 54 56 include('edit-page-form.php');
Note: See TracChangeset
for help on using the changeset viewer.