[wp-trac] [WordPress Trac] #49199: Introduce Automatic Update opt-in setting for Themes

WordPress Trac noreply at wordpress.org
Sat Jan 25 01:22:16 UTC 2020


#49199: Introduce Automatic Update opt-in setting for Themes
-------------------------------------------------+-------------------------
 Reporter:  audrasjb                             |       Owner:  audrasjb
     Type:  feature request                      |      Status:  accepted
 Priority:  normal                               |   Milestone:  5.4
Component:  Themes                               |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  dev-feedback has-screenshots has-    |     Focuses:
  patch needs-dev-note                           |  administration
-------------------------------------------------+-------------------------

Comment (by audrasjb):

 In `49199.3.diff`:

 - Added `WP_DISABLE_THEMES_AUTO_UPDATE` constant to disable auto updates
 - Added `wp_is_themes_auto_update_enabled()` PHP function to check wether
 the theme auto updates are enabled or not on the website
 - Added `wp_themes_auto_update_enabled` filter
 - Added some conditional statements so the auto update UI stuff is hidden
 if automatic updates are disabled
 - Documented the new functions

 It works fine on my side :-)

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


More information about the wp-trac mailing list