@@ 209-211 (lines=3) @@ | ||
206 | $this->log[ $plugin ] = $upgrader->skin->get_upgrade_messages(); |
|
207 | } |
|
208 | ||
209 | if ( ! $this->bulk && ! $result && $update_attempted ) { |
|
210 | return new WP_Error( 'update_fail', __( 'There was an error updating your plugin', 'jetpack' ), 400 ); |
|
211 | } |
|
212 | ||
213 | return $this->default_action(); |
|
214 | } |
|
@@ 263-265 (lines=3) @@ | ||
260 | $this->log[ $plugin ] = $upgrader->skin->get_upgrade_messages(); |
|
261 | } |
|
262 | ||
263 | if ( ! $this->bulk && ! $result ) { |
|
264 | return new WP_Error( 'update_fail', __( 'There was an error updating your plugin', 'jetpack' ), 400 ); |
|
265 | } |
|
266 | ||
267 | return true; |
|
268 | } |
@@ 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 | } |
|
@@ 123-125 (lines=3) @@ | ||
120 | $this->log[ $theme ] = $upgrader->skin->get_upgrade_messages(); |
|
121 | } |
|
122 | ||
123 | if ( ! $this->bulk && ! $result ) { |
|
124 | return new WP_Error( 'update_fail', __( 'There was an error updating your theme', 'jetpack' ), 400 ); |
|
125 | } |
|
126 | ||
127 | return true; |
|
128 | } |