json-endpoints/jetpack/class.jetpack-json-api-themes-modify-endpoint.php 1 location
|
@@ 79-81 (lines=3) @@
|
| 76 |
|
$this->log[ $theme ][] = $upgrader->skin->get_upgrade_messages(); |
| 77 |
|
} |
| 78 |
|
|
| 79 |
|
if ( ! $this->bulk && ! $result ) { |
| 80 |
|
return new WP_Error( 'update_fail', __( 'There was an error updating your theme', 'jetpack' ), 400 ); |
| 81 |
|
} |
| 82 |
|
|
| 83 |
|
return true; |
| 84 |
|
} |
json-endpoints/jetpack/class.jetpack-json-api-plugins-modify-endpoint.php 1 location
|
@@ 363-365 (lines=3) @@
|
| 360 |
|
} |
| 361 |
|
} |
| 362 |
|
|
| 363 |
|
if ( ! $this->bulk && ! $result && $update_attempted ) { |
| 364 |
|
return new WP_Error( 'update_fail', __( 'There was an error updating your plugin', 'jetpack' ), 400 ); |
| 365 |
|
} |
| 366 |
|
|
| 367 |
|
return $this->default_action(); |
| 368 |
|
} |