[wp-trac] [WordPress Trac] #20912: Php Notice for autosave in DEBUG mode when disabling autosave
WordPress Trac
wp-trac at lists.automattic.com
Tue Jun 12 01:06:49 UTC 2012
#20912: Php Notice for autosave in DEBUG mode when disabling autosave
--------------------------+-----------------------------
Reporter: Marble23 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.3.2
Severity: trivial | Keywords:
--------------------------+-----------------------------
If you turn off autosave in your theme functions file, for example
{{{
function disable_auto_save(){
wp_deregister_script('autosave');
}
add_action( 'wp_print_scripts', 'disable_auto_save' );
}}}
set DEBUG to true you get an undefined index error in class.wp-scripts.php
on line 155.
Its easily fixed if you check for the index:
{{{
- if ( isset($this->registered[$handle]) &&
$this->registered[$handle]->args === 1 )
+ if ( $this->registered[$handle]->args === 1 )
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20912>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list