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:
parent
e68063f9f3
commit
d0cb592cd7
|
@ -42,6 +42,9 @@ if ( ! empty( $_GET['invalid'] ) && !empty($popular_importers[$_GET['invalid']][
|
||||||
}
|
}
|
||||||
|
|
||||||
add_thickbox();
|
add_thickbox();
|
||||||
|
wp_enqueue_script( 'plugin-install' );
|
||||||
|
wp_admin_css( 'plugin-install' );
|
||||||
|
|
||||||
require_once ('admin-header.php');
|
require_once ('admin-header.php');
|
||||||
$parent_file = 'tools.php';
|
$parent_file = 'tools.php';
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -15,7 +15,7 @@ jQuery(document).ready(function($) {
|
||||||
tbWindow.css({'top': 20 + adminbar_height + 'px','margin-top':'0'});
|
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');
|
var href = $(this).attr('href');
|
||||||
if ( ! href )
|
if ( ! href )
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue