mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Port autosave to jquery. Props rmccue. see #3824
git-svn-id: https://develop.svn.wordpress.org/trunk@6546 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -52,11 +52,9 @@ case 'edit':
|
||||
exit();
|
||||
}
|
||||
|
||||
if($post->post_status == 'draft') {
|
||||
wp_enqueue_script('prototype');
|
||||
wp_enqueue_script('jquery');
|
||||
if ( 'draft' == $post->post_status )
|
||||
wp_enqueue_script('autosave');
|
||||
}
|
||||
|
||||
require_once('admin-header.php');
|
||||
|
||||
if ( !current_user_can('edit_page', $page_ID) )
|
||||
|
||||
Reference in New Issue
Block a user