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