@@ 63-70 (lines=8) @@ | ||
60 | "autoupdate":true |
|
61 | } |
|
62 | */ |
|
63 | if ( ( in_array( $item->slug, $autoupdate_themes_translations ) |
|
64 | || in_array( $item->slug, $autoupdate_theme_list ) ) |
|
65 | && 'theme' === $item->type |
|
66 | ) { |
|
67 | $this->expect( $item->type . ':' . $item->slug, 'translation' ); |
|
68 | ||
69 | return true; |
|
70 | } |
|
71 | ||
72 | // Plugins |
|
73 | $autoupdate_plugin_translations = Jetpack_Options::get_option( 'autoupdate_plugins_translations', array() ); |
|
@@ 78-83 (lines=6) @@ | ||
75 | $plugin_files = array_unique( array_merge( $autoupdate_plugin_list, $autoupdate_plugin_translations ) ); |
|
76 | $plugin_slugs = array_map( array( __CLASS__, 'get_plugin_slug' ), $plugin_files ); |
|
77 | ||
78 | if ( in_array( $item->slug, $plugin_slugs ) |
|
79 | && 'plugin' === $item->type |
|
80 | ) { |
|
81 | $this->expect( $item->type . ':' . $item->slug, 'translation' ); |
|
82 | return true; |
|
83 | } |
|
84 | ||
85 | return $update; |
|
86 | } |