Ticket #9346: 9346.diff

File 9346.diff, 523 bytes (added by Denis-de-Bernardy, 4 years ago)
Line 
1Index: wp-includes/class.wp-scripts.php
2===================================================================
3--- wp-includes/class.wp-scripts.php    (revision 1262)
4+++ wp-includes/class.wp-scripts.php    (working copy)
5@@ -162,6 +162,7 @@
6        }
7 
8        function do_footer_items() {
9+               $this->in_footer = array_diff($this->do_items(false, 1), $this->done);
10                if ( !empty($this->in_footer) ) {
11                        foreach( $this->in_footer as $key => $handle ) {
12                                if ( !in_array($handle, $this->done, true) && isset($this->registered[$handle]) ) {