[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
Fri Aug 7 15:56:49 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           |  Resolution:
 Keywords:  has-patch        |     Focuses:  docs
-----------------------------+---------------------

Comment (by SergeyBiryukov):

 Looking at the patch, this would probably benefit from having a dedicated
 function as a wrapper for the filter, e.g.
 `wp_is_auto_update_forced_for_type()`, similar to
 `wp_is_auto_update_enabled_for_type()`.

 But that's something for a future release, [attachment:"50868.diff"]
 should be fine for now. Haven't tested yet though, working on that now.

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


More information about the wp-trac mailing list