@@ 43-50 (lines=8) @@ | ||
40 | } |
|
41 | } |
|
42 | ||
43 | public function autoupdate_plugin( $update, $item ) { |
|
44 | $autoupdate_plugin_list = Jetpack_Options::get_option( 'autoupdate_plugins', array() ); |
|
45 | if ( in_array( $item->plugin, $autoupdate_plugin_list ) ) { |
|
46 | $this->expect( $item->plugin, 'plugin' ); |
|
47 | ||
48 | return true; |
|
49 | } |
|
50 | ||
51 | return $update; |
|
52 | } |
|
53 | ||
@@ 100-107 (lines=8) @@ | ||
97 | return $update; |
|
98 | } |
|
99 | ||
100 | public function autoupdate_theme( $update, $item ) { |
|
101 | $autoupdate_theme_list = Jetpack_Options::get_option( 'autoupdate_themes', array() ); |
|
102 | if ( in_array( $item->theme, $autoupdate_theme_list ) ) { |
|
103 | $this->expect( $item->theme, 'theme' ); |
|
104 | return true; |
|
105 | } |
|
106 | ||
107 | return $update; |
|
108 | } |
|
109 | ||
110 | public function autoupdate_core( $update, $item ) { |