From d0cb592cd7b395bdf5037c2805432686b1e7f855 Mon Sep 17 00:00:00 2001 From: nacin Date: Mon, 20 Dec 2010 16:47:23 +0000 Subject: [PATCH] Enqueue plugin-install scripts and styles on import.php. props ocean90, fixes #15842. git-svn-id: http://svn.automattic.com/wordpress/trunk@17086 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/import.php | 3 +++ wp-admin/js/plugin-install.dev.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-admin/import.php b/wp-admin/import.php index 67ab12fcc3..f94f7047bf 100644 --- a/wp-admin/import.php +++ b/wp-admin/import.php @@ -42,6 +42,9 @@ if ( ! empty( $_GET['invalid'] ) && !empty($popular_importers[$_GET['invalid']][ } add_thickbox(); +wp_enqueue_script( 'plugin-install' ); +wp_admin_css( 'plugin-install' ); + require_once ('admin-header.php'); $parent_file = 'tools.php'; ?> diff --git a/wp-admin/js/plugin-install.dev.js b/wp-admin/js/plugin-install.dev.js index 36dce7deb8..dc1650e02c 100644 --- a/wp-admin/js/plugin-install.dev.js +++ b/wp-admin/js/plugin-install.dev.js @@ -15,7 +15,7 @@ jQuery(document).ready(function($) { tbWindow.css({'top': 20 + adminbar_height + 'px','margin-top':'0'}); }; - return $('#dashboard_plugins a.thickbox, .plugins a.thickbox').each( function() { + return $('a.thickbox').each( function() { var href = $(this).attr('href'); if ( ! href ) return;