WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/20/2012 07:46:38 PM (9 years ago)
Author:
azaozz
Message:

Don't load autosave.js on the attachment editing screen, add simple AYS on unload if there are changes, props helenyhou, fixes #22491

File:
1 edited

Legend:

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

    r22291 r22725  
    4444    wp_schedule_event( time(), 'daily', 'wp_scheduled_auto_draft_delete' );
    4545
    46 wp_enqueue_script('autosave');
     46if ( 'attachment' !== $post_type )
     47    wp_enqueue_script('autosave');
    4748
    4849// Show post form.
Note: See TracChangeset for help on using the changeset viewer.