|
@@ 49-56 (lines=8) @@
|
| 46 |
|
return false; |
| 47 |
|
} |
| 48 |
|
|
| 49 |
|
public function autoupdate_plugin( $update, $item ) { |
| 50 |
|
$autoupdate_plugin_list = Jetpack_Options::get_option( 'autoupdate_plugins', array() ); |
| 51 |
|
if ( in_array( $item->plugin, $autoupdate_plugin_list ) ) { |
| 52 |
|
$this->expect( $item->plugin, 'plugin' ); |
| 53 |
|
return true; |
| 54 |
|
} |
| 55 |
|
return $update; |
| 56 |
|
} |
| 57 |
|
|
| 58 |
|
public function autoupdate_theme( $update, $item ) { |
| 59 |
|
$autoupdate_theme_list = Jetpack_Options::get_option( 'autoupdate_themes', array() ); |
|
@@ 58-65 (lines=8) @@
|
| 55 |
|
return $update; |
| 56 |
|
} |
| 57 |
|
|
| 58 |
|
public function autoupdate_theme( $update, $item ) { |
| 59 |
|
$autoupdate_theme_list = Jetpack_Options::get_option( 'autoupdate_themes', array() ); |
| 60 |
|
if ( in_array( $item->theme , $autoupdate_theme_list) ) { |
| 61 |
|
$this->expect( $item->theme, 'theme' ); |
| 62 |
|
return true; |
| 63 |
|
} |
| 64 |
|
return $update; |
| 65 |
|
} |
| 66 |
|
|
| 67 |
|
public function autoupdate_core( $update, $item ) { |
| 68 |
|
$autoupdate_core = Jetpack_Options::get_option( 'autoupdate_core', false ); |