Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #28158, comment 6


Ignore:
Timestamp:
05/08/2014 03:17:07 PM (9 years ago)
Author:
Denis-de-Bernardy
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28158, comment 6

    initial v1  
    55> This doesn't match the behaviour in `the_widget` which does fail silently. If anything, the silent validation in `the_widget` is not even worth anything since you're going to have had a fatal error before it even reaches that code.
    66
    7 As I recollect, the_widget(), when it was introduced, was designed in such a way that it wouldn't cause a fatal error when a call is left lying around in a theme or in php content while the plugin that introduced the widget is disabled. The widget factory, in contrast, should only ever get called when a theme or plugin introduces a new widget.
     7As I recollect, the_widget(), when it was introduced, was designed in such a way that it wouldn't cause a fatal error when a call is left lying around in a theme or in php content while the plugin that introduced the widget is disabled -- which is an end-user error, rather than a developer error. The widget factory, in contrast, should only ever get called when a theme or plugin introduces a new widget.