@@ 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 | ||
@@ 81-88 (lines=8) @@ | ||
78 | return $update; |
|
79 | } |
|
80 | ||
81 | public function autoupdate_theme( $update, $item ) { |
|
82 | $autoupdate_theme_list = Jetpack_Options::get_option( 'autoupdate_themes', array() ); |
|
83 | if ( in_array( $item->theme, $autoupdate_theme_list ) ) { |
|
84 | $this->expect( $item->theme, 'theme' ); |
|
85 | ||
86 | return true; |
|
87 | } |
|
88 | ||
89 | return $update; |
|
90 | } |
|
91 |