json-endpoints/jetpack/class.jetpack-json-api-plugins-modify-endpoint.php 1 location
|
@@ 237-243 (lines=7) @@
|
234 |
|
$this->log[$plugin][] = __( 'Plugin activated.', 'jetpack' ); |
235 |
|
} |
236 |
|
|
237 |
|
if ( ! $this->bulk && isset( $has_errors ) ) { |
238 |
|
$plugin = $this->plugins[0]; |
239 |
|
if ( $permission_error ) { |
240 |
|
return new WP_Error( 'unauthorized_error', $this->log[$plugin]['error'], 403 ); |
241 |
|
} |
242 |
|
|
243 |
|
return new WP_Error( 'activation_error', $this->log[$plugin]['error'] ); |
244 |
|
} |
245 |
|
} |
246 |
|
|
json-endpoints/jetpack/class.jetpack-json-api-plugins-modify-v1-2-endpoint.php 1 location
|
@@ 146-152 (lines=7) @@
|
143 |
|
$this->log[$plugin][] = __( 'Plugin activated.', 'jetpack' ); |
144 |
|
} |
145 |
|
|
146 |
|
if ( ! $this->bulk && $has_errors ) { |
147 |
|
$plugin = $this->plugins[0]; |
148 |
|
if ( $permission_error ) { |
149 |
|
return new WP_Error( 'unauthorized_error', $this->log[$plugin]['error'], 403 ); |
150 |
|
} |
151 |
|
|
152 |
|
return new WP_Error( 'activation_error', $this->log[$plugin]['error'] ); |
153 |
|
} |
154 |
|
} |
155 |
|
|