@@ 672-675 (lines=4) @@ | ||
669 | if (isset($this->script_handles_with_data[$script_handle])) { |
|
670 | global $wp_scripts; |
|
671 | $unset_handle = false; |
|
672 | if ($wp_scripts->get_data($script_handle, 'data')) { |
|
673 | unset($wp_scripts->registered[$script_handle]->extra['data']); |
|
674 | $unset_handle = true; |
|
675 | } |
|
676 | //deal with inline_scripts |
|
677 | if ($wp_scripts->get_data($script_handle, 'before')) { |
|
678 | unset($wp_scripts->registered[$script_handle]->extra['before']); |
|
@@ 677-680 (lines=4) @@ | ||
674 | $unset_handle = true; |
|
675 | } |
|
676 | //deal with inline_scripts |
|
677 | if ($wp_scripts->get_data($script_handle, 'before')) { |
|
678 | unset($wp_scripts->registered[$script_handle]->extra['before']); |
|
679 | $unset_handle = true; |
|
680 | } |
|
681 | if ($wp_scripts->get_data($script_handle, 'after')) { |
|
682 | unset($wp_scripts->registered[$script_handle]->extra['after']); |
|
683 | } |