Ticket #25254: 25254.2.diff
| File 25254.2.diff, 1.5 KB (added by , 12 years ago) |
|---|
-
src/wp-admin/includes/class-wp-upgrader.php
299 299 if ( ! $res ) //Mainly for non-connected filesystem. 300 300 return false; 301 301 302 if ( ! $is_multi ) // call $this->header separately if running multiple times 303 $this->skin->header(); 304 305 $this->skin->before(); 306 302 307 if ( is_wp_error($res) ) { 303 308 $this->skin->error($res); 309 $this->skin->after(); 310 if ( ! $is_multi ) 311 $this->skin->footer(); 304 312 return $res; 305 313 } 306 314 307 if ( !$is_multi ) // call $this->header separately if running multiple times308 $this->skin->header();309 310 $this->skin->before();311 312 315 //Download the package (Note, This just returns the filename of the file if the package is a local file) 313 316 $download = $this->download_package( $package ); 314 317 if ( is_wp_error($download) ) { 315 318 $this->skin->error($download); 316 319 $this->skin->after(); 320 if ( ! $is_multi ) 321 $this->skin->footer(); 317 322 return $download; 318 323 } 319 324 … … 324 329 if ( is_wp_error($working_dir) ) { 325 330 $this->skin->error($working_dir); 326 331 $this->skin->after(); 332 if ( ! $is_multi ) 333 $this->skin->footer(); 327 334 return $working_dir; 328 335 } 329 336 … … 345 352 //Install Succeeded 346 353 $this->skin->feedback('process_success'); 347 354 } 355 348 356 $this->skin->after(); 349 357 350 if ( ! $is_multi )358 if ( ! $is_multi ) 351 359 $this->skin->footer(); 352 360 353 361 return $result;