Changeset 48667
- Timestamp:
- 07/28/2020 04:13:03 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/update.php
r48660 r48667 1015 1015 */ 1016 1016 function wp_is_auto_update_enabled_for_type( $type ) { 1017 if ( ! class_exists( 'WP_Automatic_Updater' ) ) { 1018 require_once ABSPATH . 'wp-admin/includes/class-wp-automatic-updater.php'; 1019 } 1020 1021 $updater = new WP_Automatic_Updater(); 1022 $enabled = ! $updater->is_disabled(); 1023 1017 1024 switch ( $type ) { 1018 1025 case 'plugin': … … 1024 1031 * @param bool $enabled True if plugins auto-update is enabled, false otherwise. 1025 1032 */ 1026 return apply_filters( 'plugins_auto_update_enabled', true);1033 return apply_filters( 'plugins_auto_update_enabled', $enabled ); 1027 1034 case 'theme': 1028 1035 /** … … 1033 1040 * @param bool $enabled True if themes auto-update is enabled, false otherwise. 1034 1041 */ 1035 return apply_filters( 'themes_auto_update_enabled', true);1042 return apply_filters( 'themes_auto_update_enabled', $enabled ); 1036 1043 } 1037 1044
Note: See TracChangeset
for help on using the changeset viewer.