Enqueue plugin-install scripts and styles on import.php. props ocean90, fixes #15842.

git-svn-id: https://develop.svn.wordpress.org/trunk@17086 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-12-20 16:47:23 +00:00
parent f5ab190c44
commit ff7001986a
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;