Ticket #25254: 25254.diff
| File 25254.diff, 1.4 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 $this->skin->footer(); 304 311 return $res; 305 312 } 306 313 307 if ( !$is_multi ) // call $this->header separately if running multiple times308 $this->skin->header();309 310 $this->skin->before();311 312 314 //Download the package (Note, This just returns the filename of the file if the package is a local file) 313 315 $download = $this->download_package( $package ); 314 316 if ( is_wp_error($download) ) { 315 317 $this->skin->error($download); 316 318 $this->skin->after(); 319 $this->skin->footer(); 317 320 return $download; 318 321 } 319 322 … … 324 327 if ( is_wp_error($working_dir) ) { 325 328 $this->skin->error($working_dir); 326 329 $this->skin->after(); 330 $this->skin->footer(); 327 331 return $working_dir; 328 332 } 329 333 … … 345 349 //Install Succeeded 346 350 $this->skin->feedback('process_success'); 347 351 } 352 348 353 $this->skin->after(); 349 354 350 if ( ! $is_multi )355 if ( ! $is_multi ) 351 356 $this->skin->footer(); 352 357 353 358 return $result;