Skip to content

Commit

Permalink
Enqueue plugin-install scripts and styles on import.php. props ocean9…
Browse files Browse the repository at this point in the history
…0, fixes #15842.

git-svn-id: http://svn.automattic.com/wordpress/trunk@17086 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
nacin committed Dec 20, 2010
1 parent e68063f commit d0cb592
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions wp-admin/import.php
Expand Up @@ -42,6 +42,9 @@
}

add_thickbox();
wp_enqueue_script( 'plugin-install' );
wp_admin_css( 'plugin-install' );

require_once ('admin-header.php');
$parent_file = 'tools.php';
?>
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/js/plugin-install.dev.js
Expand Up @@ -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;
Expand Down

0 comments on commit d0cb592

Please sign in to comment.