mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-05 05:04:31 +00:00
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:
@@ -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] );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user