[wp-trac] [WordPress Trac] #50825: Custom plugins forcing auto-updates to true getting listed in Auto-updates Disabled view

WordPress Trac noreply at wordpress.org
Fri Jul 31 05:13:13 UTC 2020


#50825: Custom plugins forcing auto-updates to true getting listed in Auto-updates
Disabled view
-----------------------------+-----------------------------
 Reporter:  garyc40          |      Owner:  (none)
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Upgrade/Install  |    Version:  trunk
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 If a plugin hooks into `auto_update_plugin` and return true for that
 plugin, then the Plugins list table will show "Auto-updates enabled" on
 the "Automatic Updates" column. However, currently, the plugin is still
 listed in "Auto-updates Disabled" view, which can be confusing for the
 users.

 There are three primary use cases here that I can think of:
 1. Prior to this release, a lot of plugins included a setting with the
 ability to enable or disable updates for that plugin on their settings
 panel. To do this they would hook into auto_updates_plugin, and find their
 plugin and return the value of the setting
 2. Imagine a parent plugin like WooCommerce wanting to do the above but
 have that setting work for WooCommerce + all add-ons (because you wouldn't
 want to autoupdate for example recurring but not WooCommerce core) --
 incompatibility nightmares await
 3. Imagine a service plugin like a managewp type plugin where users can
 enable or disable autoupdates for a plug-in from the service/SaaS website
 as opposed to a website.

 It's something you find generally when the plugin is not hosted on .org or
 the service being used is not on .org (the service mu plugin would set the
 values for each plugin via auto_update_plugin to match the service
 selected values).

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50825>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list