sync/class.jetpack-sync-module-plugins.php 1 location
|
@@ 71-77 (lines=7) @@
|
| 68 |
|
} |
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
if ( ! isset( $details['type'] ) || |
| 72 |
|
'plugin' !== $details['type'] || |
| 73 |
|
is_wp_error( $upgrader->skin->result ) || |
| 74 |
|
! method_exists( $upgrader, 'plugin_info' ) |
| 75 |
|
) { |
| 76 |
|
return; |
| 77 |
|
} |
| 78 |
|
|
| 79 |
|
if ( 'install' === $details['action'] ) { |
| 80 |
|
$plugin_path = $upgrader->plugin_info(); |
sync/class.jetpack-sync-module-themes.php 1 location
|
@@ 279-285 (lines=7) @@
|
| 276 |
|
} |
| 277 |
|
|
| 278 |
|
public function check_upgrader( $upgrader, $details) { |
| 279 |
|
if ( ! isset( $details['type'] ) || |
| 280 |
|
'theme' !== $details['type'] || |
| 281 |
|
is_wp_error( $upgrader->skin->result ) || |
| 282 |
|
! method_exists( $upgrader, 'theme_info' ) |
| 283 |
|
) { |
| 284 |
|
return; |
| 285 |
|
} |
| 286 |
|
|
| 287 |
|
$theme = $upgrader->theme_info(); |
| 288 |
|
if ( ! $theme instanceof WP_Theme ) { |