Skip to content

Conversation

@westonruter
Copy link
Contributor

The plugin currently assumes that WP_Widget will be used for all widgets. This, however, is not always the case. Widgets can still be registered using an earlier API. For example: https://gist.github.com/westonruter/7141599

When such an old single widget is present, a PHP notice is the result:

PHP Notice: Undefined index: number in /app/public/content/plugins/widget-css-classes/includes/widget-css-classes.class.php on line 474

This prevents that from happening.

It would be even better to actually add support for single widgets, but this is better than a notice.

@JoryHogeveen
Copy link
Collaborator

Thanks @westonruter!
I'll look into how to support single widgets.

@JoryHogeveen JoryHogeveen changed the base branch from master to dev July 4, 2019 12:16
@JoryHogeveen JoryHogeveen added this to the 1.5.4 milestone Jul 4, 2019
@JoryHogeveen JoryHogeveen merged commit 646a7f7 into cleverness:dev Jul 4, 2019
This was referenced Jul 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants