Skip to content

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

Open
matt-h wants to merge 1 commit into
dimadin:masterfrom
matt-h:fix-hook-extra
Open

make sure $hook_extra['plugins'] before using it.#3
matt-h wants to merge 1 commit into
dimadin:masterfrom
matt-h:fix-hook-extra

Conversation

@matt-h
Copy link
Copy Markdown

@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