[wp-trac] [WordPress Trac] #50821: plugin_auto_update_debug_string does not receive plugin file path
WordPress Trac
noreply at wordpress.org
Thu Jul 30 17:47:19 UTC 2020
#50821: plugin_auto_update_debug_string does not receive plugin file path
--------------------------+-----------------------------
Reporter: bpayton | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Site Health | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
This filter receives plugin information but no indication of the plugin
file. For example:
{{{
Array
(
[Name] => Akismet Anti-Spam
[PluginURI] => https://akismet.com/
[Version] => 4.1.6
[Description] => Used by millions, Akismet is quite possibly the best
way in the world to <strong>protect your blog from spam</strong>. It keeps
your site protected even while you sleep. T
o get started: activate the Akismet plugin and then go to your Akismet
Settings page to set up your API key.
[Author] => Automattic
[AuthorURI] => https://automattic.com/wordpress-plugins/
[TextDomain] => akismet
[DomainPath] =>
[Network] =>
[RequiresWP] =>
[RequiresPHP] =>
[Title] => Akismet Anti-Spam
[AuthorName] => Automattic
)
}}}
We have a WordPress.com use case where sites can have both platform-
managed and user-installed plugins. The user-installed plugins can be auto
updated by the site, but the platform-managed plugins cannot.
The `auto_update_plugin` and `plugin_auto_update_setting_html` both
receive objects with a reference to the plugin file, and we use that
information to look at the plugin on disk and determine whether the plugin
is auto-updatable. The `plugin_auto_update_debug_string` filter does not
provide this information, making it difficult to provide useful auto
update debug strings for the Site Health page.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50821>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list