sync/class.jetpack-sync-module-themes.php 1 location
|
@@ 25-31 (lines=7) @@
|
| 22 |
|
} |
| 23 |
|
|
| 24 |
|
public function check_upgrader( $upgrader, $details) { |
| 25 |
|
if ( ! isset( $details['type'] ) || |
| 26 |
|
'theme' !== $details['type'] || |
| 27 |
|
is_wp_error( $upgrader->skin->result ) || |
| 28 |
|
! method_exists( $upgrader, 'theme_info' ) |
| 29 |
|
) { |
| 30 |
|
return; |
| 31 |
|
} |
| 32 |
|
|
| 33 |
|
$theme = $upgrader->theme_info(); |
| 34 |
|
$theme_info = array( |
sync/class.jetpack-sync-module-plugins.php 1 location
|
@@ 33-39 (lines=7) @@
|
| 30 |
|
|
| 31 |
|
public function check_upgrader( $upgrader, $details) { |
| 32 |
|
|
| 33 |
|
if ( ! isset( $details['type'] ) || |
| 34 |
|
'plugin' !== $details['type'] || |
| 35 |
|
is_wp_error( $upgrader->skin->result ) || |
| 36 |
|
! method_exists( $upgrader, 'plugin_info' ) |
| 37 |
|
) { |
| 38 |
|
return; |
| 39 |
|
} |
| 40 |
|
|
| 41 |
|
if ( 'install' === $details['action'] ) { |
| 42 |
|
$plugin_path = $upgrader->plugin_info(); |