If the comments are already disabled by an external plugin*, the (old) widget ‘WP_Widget_Recent_Comments’ might already be unregistered.
The line 130 of ‘functions.php’ would be fine if it was using a more robust way of removing the widget. Un-setting the widget inside the factory may not be the cleanest way.
The exact error is: Notice: Undefined index: WP_Widget_Recent_Comments in […]/fluxipress/functions.php on line 130.
Following is the fixing diff:
(@b1bz)
8 years, 10 months ago
If the comments are already disabled by an external plugin*, the (old) widget ‘WP_Widget_Recent_Comments’ might already be unregistered.
The line 130 of ‘functions.php’ would be fine if it was using a more robust way of removing the widget. Un-setting the widget inside the factory may not be the cleanest way.
The exact error is: Notice: Undefined index: WP_Widget_Recent_Comments in […]/fluxipress/functions.php on line 130.
Following is the fixing diff:
* for instance with the ‘Disable Comments’ plugin.