[wp-trac] [WordPress Trac] #38469: wp-includes/widgets.php:1208 Undefined index: wp_inactive_widgets
WordPress Trac
noreply at wordpress.org
Wed Mar 27 16:37:03 UTC 2019
#38469: wp-includes/widgets.php:1208 Undefined index: wp_inactive_widgets
-----------------------------------------+------------------------------
Reporter: onnimonni | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version: 2.8
Severity: normal | Resolution:
Keywords: has-patch close 2nd-opinion | Focuses:
-----------------------------------------+------------------------------
Changes (by desrosj):
* keywords: => has-patch close 2nd-opinion
* version: 4.6.1 => 2.8
* component: General => Widgets
Comment:
Thanks for opening this, @onnimonni!
It looks like your custom install script is now correctly adding an empty
array to the `wp_inactive_widgets` key for the `sidebars_widgets` option.
My initial thought is that this notice should not be fixed. This notice
indicates that something has removed that index from the array (or has
never set it) and is causing a problem. Also, this was only occurring
because your custom installer was not initializing the
`wp_inactive_widgets` index and not due to a bug in core.
Marking as a close candidate pending a second opinion.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38469#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list