[wp-trac] [WordPress Trac] #50875: Introduce a wrapper for the 'auto_update_{$type}' filter checks

WordPress Trac noreply at wordpress.org
Fri Aug 7 16:17:08 UTC 2020


#50875: Introduce a wrapper for the 'auto_update_{$type}' filter checks
-----------------------------+--------------------
 Reporter:  SergeyBiryukov   |      Owner:  (none)
     Type:  enhancement      |     Status:  new
 Priority:  normal           |  Milestone:  5.6
Component:  Upgrade/Install  |    Version:
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+--------------------
 Background: #50868

 Looking at [48750], using the `$type` variable was necessary to reference
 the canonical name of the filter, but with the filter applied in quite a
 few places, that increases the chances of a conflict with an existing
 `$type` variable used elsewhere.

 I think this would benefit from having a dedicated function as a wrapper
 for the filter, something like `wp_is_auto_update_forced_for_type()`,
 similar to `wp_is_auto_update_enabled_for_type()`.

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


More information about the wp-trac mailing list