acf-extended / ACF-Extended

🚀 All-in-one enhancement suite that improves WordPress & Advanced Custom Fields
https://www.acf-extended.com
238 stars 27 forks source link

Notice "Undefined property: stdClass::$plugin" in "add plugin" view #86

Closed ghost closed 2 years ago

ghost commented 2 years ago

Describe the bug ACF Extended generate a notice in the "Add plugin" admin view. It seems the plugin object doesn't contains the key "plugin" which seems true (after some tests below).

To Reproduce

Expected behavior No notice generated.

Screenshots If applicable, add screenshots to help explain your problem.

Inked136799053-afc4f92f-76e8-4f5a-838d-145c7d51fdd9_LI image

WordPress & ACF WordPress version: latest ACF Pro version: latest

ghost commented 2 years ago

It seems to be a edge case issue, can't manage to reproduce it on a fresh install...

The issue was regarding update_plugin transient _(option: _site_transient_update_plugins)_ which doesn't contains plugin key in the plugin data object.

Steps to resolve this issue: