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

git-svn-id: https://develop.svn.wordpress.org/trunk@10362 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2009-01-15 00:08:20 +00:00
parent 7d0211f12c
commit f36563c215
3 changed files with 3 additions and 3 deletions

View File

@@ -160,7 +160,7 @@ class WP_Scripts extends WP_Dependencies {
if ( !empty($this->in_footer) ) {
foreach( $this->in_footer as $key => $handle ) {
if ( !in_array($handle, $this->done, true) && isset($this->registered[$handle]) ) {
$this->do_item($handle, false, $this->doecho);
$this->do_item($handle);
$this->done[] = $handle;
unset( $this->in_footer[$key] );
}