|
@@ 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 |
|
|
|
@@ 95-102 (lines=8) @@
|
| 92 |
|
return $update; |
| 93 |
|
} |
| 94 |
|
|
| 95 |
|
public function autoupdate_theme( $update, $item ) { |
| 96 |
|
$autoupdate_theme_list = Jetpack_Options::get_option( 'autoupdate_themes', array() ); |
| 97 |
|
if ( in_array( $item->theme, $autoupdate_theme_list ) ) { |
| 98 |
|
$this->expect( $item->theme, 'theme' ); |
| 99 |
|
return true; |
| 100 |
|
} |
| 101 |
|
|
| 102 |
|
return $update; |
| 103 |
|
} |
| 104 |
|
|
| 105 |
|
public function autoupdate_core( $update, $item ) { |