mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-18 12:35:03 +00:00
Add footer actions to iframe footer, props DD32, fixes #9832
git-svn-id: http://svn.automattic.com/wordpress/trunk@11366 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
535aa13c4a
commit
f69da836bf
@ -3358,10 +3358,16 @@ do_action('admin_head');
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function iframe_footer() {
|
function iframe_footer() {
|
||||||
echo '
|
//We're going to hide any footer output on iframe pages, but run the hooks anyway since they output Javascript or other needed content. ?>
|
||||||
|
<div class="hidden">
|
||||||
|
<?php
|
||||||
|
do_action('admin_footer', '');
|
||||||
|
do_action('admin_print_footer_scripts'); ?>
|
||||||
|
</div>
|
||||||
<script type="text/javascript">if(typeof wpOnload=="function")wpOnload();</script>
|
<script type="text/javascript">if(typeof wpOnload=="function")wpOnload();</script>
|
||||||
</body>
|
</body>
|
||||||
</html>';
|
</html>
|
||||||
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
function _post_states($post) {
|
function _post_states($post) {
|
||||||
|
@ -18,9 +18,6 @@ $title = __('Install Plugins');
|
|||||||
$parent_file = 'plugins.php';
|
$parent_file = 'plugins.php';
|
||||||
|
|
||||||
wp_reset_vars( array('tab', 'paged') );
|
wp_reset_vars( array('tab', 'paged') );
|
||||||
wp_enqueue_style( 'plugin-install' );
|
|
||||||
wp_enqueue_script( 'plugin-install' );
|
|
||||||
add_thickbox();
|
|
||||||
|
|
||||||
//These are the tabs which are shown on the page,
|
//These are the tabs which are shown on the page,
|
||||||
$tabs = array();
|
$tabs = array();
|
||||||
@ -46,6 +43,11 @@ if( empty($tab) || ( ! isset($tabs[ $tab ]) && ! in_array($tab, (array)$nonmenu_
|
|||||||
if( empty($paged) )
|
if( empty($paged) )
|
||||||
$paged = 1;
|
$paged = 1;
|
||||||
|
|
||||||
|
wp_enqueue_style( 'plugin-install' );
|
||||||
|
wp_enqueue_script( 'plugin-install' );
|
||||||
|
if ( 'plugin-information' != $tab )
|
||||||
|
add_thickbox();
|
||||||
|
|
||||||
$body_id = $tab;
|
$body_id = $tab;
|
||||||
|
|
||||||
do_action('install_plugins_pre_' . $tab); //Used to override the general interface, Eg, install or plugin information.
|
do_action('install_plugins_pre_' . $tab); //Used to override the general interface, Eg, install or plugin information.
|
||||||
|
@ -369,7 +369,7 @@ function wp_default_scripts( &$scripts ) {
|
|||||||
'l10n_print_after' => 'try{convertEntities(inlineEditL10n);}catch(e){};'
|
'l10n_print_after' => 'try{convertEntities(inlineEditL10n);}catch(e){};'
|
||||||
) );
|
) );
|
||||||
|
|
||||||
$scripts->add( 'plugin-install', "/wp-admin/js/plugin-install$suffix.js", array( 'thickbox', 'jquery' ), '20090506' );
|
$scripts->add( 'plugin-install', "/wp-admin/js/plugin-install$suffix.js", array( 'jquery' ), '20090506' );
|
||||||
$scripts->add_data( 'plugin-install', 'group', 1 );
|
$scripts->add_data( 'plugin-install', 'group', 1 );
|
||||||
$scripts->localize( 'plugin-install', 'plugininstallL10n', array(
|
$scripts->localize( 'plugin-install', 'plugininstallL10n', array(
|
||||||
'plugin_information' => __('Plugin Information:'),
|
'plugin_information' => __('Plugin Information:'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user