[wp-trac] [WordPress Trac] #50868: Correct usage of the non-dynamic auto_update_plugin and auto_update_theme hooks

WordPress Trac noreply at wordpress.org
Thu Aug 6 10:32:28 UTC 2020


#50868: Correct usage of the non-dynamic auto_update_plugin and auto_update_theme
hooks
-----------------------------+-------------------------
 Reporter:  johnbillion      |      Owner:  (none)
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  5.5
Component:  Upgrade/Install  |    Version:  trunk
 Severity:  normal           |   Keywords:  needs-patch
  Focuses:  docs             |
-----------------------------+-------------------------
 The `auto_update_plugin` and `auto_update_theme` hooks are used in a few
 places in core, but the canonical name for both of these is
 `"auto_update_{$type}"`. This means the corresponding comment above each
 one is not correct.

 We should change these instances to the dynamic name so the developer
 reference site remains correct.

 In addition, this is a filter not an action so the comments need updating
 in a few places.

 Milestoning for 5.5 so we ensure all the docs are as accurate as possible
 now that user-controllable plugin and theme auto updates are a feature.

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


More information about the wp-trac mailing list