~katiekitty/+junk/wordpress-byet

« back to all changes in this revision

Viewing changes to wp-admin/media.php

  • Committer: kserver
  • Date: 2010-05-15 01:16:36 UTC
  • Revision ID: kserver@kserver-desktop-20100515011636-mnr1j7t637suptdq
Wordpress 2.9.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
 
59
59
        $att = get_post($att_id);
60
60
 
 
61
        if ( empty($att->ID) ) wp_die( __('You attempted to edit an attachment that doesn’t exist. Perhaps it was deleted?') );
 
62
        if ( $att->post_status == 'trash' ) wp_die( __('You can’t edit this attachment because it is in the Trash. Please move it out of the Trash and try again.') );
 
63
 
61
64
        add_filter('attachment_fields_to_edit', 'media_single_attachment_fields_to_edit', 10, 2);
62
65
 
63
66
        wp_enqueue_script( 'wp-ajax-response' );
 
67
        wp_enqueue_script('image-edit');
 
68
        wp_enqueue_style('imgareaselect');
64
69
 
65
70
        require( 'admin-header.php' );
66
71