|
@@ 41-48 (lines=8) @@
|
| 38 |
|
} |
| 39 |
|
} |
| 40 |
|
|
| 41 |
|
public function autoupdate_plugin( $update, $item ) { |
| 42 |
|
$autoupdate_plugin_list = Jetpack_Options::get_option( 'autoupdate_plugins', array() ); |
| 43 |
|
if ( in_array( $item->plugin, $autoupdate_plugin_list ) ) { |
| 44 |
|
$this->expect( $item->plugin, 'plugin' ); |
| 45 |
|
return true; |
| 46 |
|
} |
| 47 |
|
return $update; |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
public function autoupdate_theme( $update, $item ) { |
| 51 |
|
$autoupdate_theme_list = Jetpack_Options::get_option( 'autoupdate_themes', array() ); |
|
@@ 50-57 (lines=8) @@
|
| 47 |
|
return $update; |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
public function autoupdate_theme( $update, $item ) { |
| 51 |
|
$autoupdate_theme_list = Jetpack_Options::get_option( 'autoupdate_themes', array() ); |
| 52 |
|
if ( in_array( $item->theme , $autoupdate_theme_list) ) { |
| 53 |
|
$this->expect( $item->theme, 'theme' ); |
| 54 |
|
return true; |
| 55 |
|
} |
| 56 |
|
return $update; |
| 57 |
|
} |
| 58 |
|
|
| 59 |
|
public function autoupdate_core( $update, $item ) { |
| 60 |
|
$autoupdate_core = Jetpack_Options::get_option( 'autoupdate_core', false ); |