WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/20/2012 07:46:38 PM (7 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.php

    r21948 r22725  
    170170    } else {
    171171        $active_post_lock = wp_set_post_lock( $post->ID );
    172         wp_enqueue_script('autosave');
     172
     173        if ( 'attachment' !== $post_type )
     174            wp_enqueue_script('autosave');
    173175    }
    174176
Note: See TracChangeset for help on using the changeset viewer.