WordPress.org

Make WordPress Core

Changeset 10362


Ignore:
Timestamp:
01/15/09 00:08:20 (5 years ago)
Author:
azaozz
Message:

Add action hook in admin footer so plugins can output scripts there on specific pages only, props GamerZ, fixes #8859

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-footer.php

    r10357 r10362  
    2626do_action('admin_footer', ''); 
    2727do_action('admin_print_footer_scripts'); 
     28do_action("admin_footer-$hook_suffix"); 
    2829 
    2930if ( false === get_option('can_compress_scripts') ) 
    3031    compression_test(); 
    3132?> 
     33 
    3234<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script> 
    3335</body> 
    3436</html> 
    35  
  • trunk/wp-admin/includes/template.php

    r10357 r10362  
    33823382            $name = str_replace(array('.php', '-new', '-add'), '', $hook_suffix); 
    33833383    } 
    3384     unset($hook_suffix); 
    33853384?> 
    33863385    <div id="icon-<?php echo $name; ?>" class="icon32"><br /></div> 
  • trunk/wp-includes/class.wp-scripts.php

    r10358 r10362  
    161161            foreach( $this->in_footer as $key => $handle ) { 
    162162                if ( !in_array($handle, $this->done, true) && isset($this->registered[$handle]) ) { 
    163                     $this->do_item($handle, false, $this->doecho); 
     163                    $this->do_item($handle); 
    164164                    $this->done[] = $handle; 
    165165                    unset( $this->in_footer[$key] ); 
Note: See TracChangeset for help on using the changeset viewer.