WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/22/2014 04:55:37 AM (7 years ago)
Author:
azaozz
Message:

Autosave: refactor autosave.js, use heartbeat for transport and move all "Add/Edit Post" related functionality to post.js. See #25272.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/post.php

    r26959 r26995  
    308308
    309309case 'preview':
    310     check_admin_referer( 'autosave', 'autosavenonce' );
     310    check_admin_referer( 'update-post_' . $post_id );
    311311
    312312    $url = post_preview();
Note: See TracChangeset for help on using the changeset viewer.