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
This commit is contained in:
nacin 2010-12-20 16:47:23 +00:00
parent e68063f9f3
commit d0cb592cd7
2 changed files with 4 additions and 1 deletions

View File

@ -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';
?>

View File

@ -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;