Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make sure $hook_extra['plugins'] before using it. #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

matt-h
Copy link

@matt-h matt-h commented May 10, 2019

We've had some errors that $hook_extra['plugins'] is not set when using it in this function.

It has only been with non WordPress.org plugins, but this should fix it to make sure that it is set before using it.

Also handle if $hook_extra['plugin'] is used to pass a single plugin. A case that I have an example of the $hook_extra variable contained the following data.

[
  'action' => 'update',
  'plugin' => 'wpmudev-updates/update-notifications.php',
  'type' => 'plugin'
]

Also handle if $hook_extra['plugin'] is used.
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.

1 participant