[wp-trac] [WordPress Trac] #25462: set_group fails on deregistered but not dequeued
WordPress Trac
noreply at wordpress.org
Tue Oct 1 20:12:35 UTC 2013
#25462: set_group fails on deregistered but not dequeued
------------------------------+-----------------------------
Reporter: tivnet | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Warnings/Notices | Version:
Severity: normal | Keywords: has-patch
------------------------------+-----------------------------
This:
{{{
add_action('wp_print_scripts', function () {
wp_deregister_script('autosave');
});
}}}
results in:
{{{
PHP Notice: Undefined index: autosave in class.wp-scripts.php on line 169
PHP Notice: Trying to get property of non-object in class.wp-scripts.php
on line 169
}}}
With `wp_dequeue_script('autosave');`, everything is fine.
But without `dequeue`, probably, the attached patch might help.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25462>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list