Don't load wp-lists on pages that don't need it. Props mdawaffe. fixes #6011

git-svn-id: https://develop.svn.wordpress.org/trunk@7057 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-02-27 00:46:27 +00:00
parent 174f16123e
commit a5fc5dcbf4
11 changed files with 16 additions and 90 deletions
-5
View File
@@ -31,7 +31,6 @@ if ( isset($_GET['deleteit']) && isset($_GET['delete']) ) {
$title = __('Media Library');
$parent_file = 'edit.php';
wp_enqueue_script( 'admin-posts' );
wp_enqueue_script( 'admin-forms' );
if ( 1 == $_GET['c'] )
wp_enqueue_script( 'admin-comments' );
@@ -181,10 +180,6 @@ foreach ($arc_result as $arc_row) {
</form>
<form action="" method="post" id="get-extra-posts" class="add:the-extra-list:" style="display:none">
<?php wp_nonce_field( 'add-post', '_ajax_nonce', false ); ?>
</form>
<div id="ajax-response"></div>
<div class="tablenav">