Make WordPress Core

Ticket #25254: 25254.diff

File 25254.diff, 1.4 KB (added by SergeyBiryukov, 12 years ago)
  • src/wp-admin/includes/class-wp-upgrader.php

     
    299299                if ( ! $res ) //Mainly for non-connected filesystem.
    300300                        return false;
    301301
     302                if ( ! $is_multi ) // call $this->header separately if running multiple times
     303                        $this->skin->header();
     304
     305                $this->skin->before();
     306
    302307                if ( is_wp_error($res) ) {
    303308                        $this->skin->error($res);
     309                        $this->skin->after();
     310                        $this->skin->footer();
    304311                        return $res;
    305312                }
    306313
    307                 if ( !$is_multi ) // call $this->header separately if running multiple times
    308                         $this->skin->header();
    309 
    310                 $this->skin->before();
    311 
    312314                //Download the package (Note, This just returns the filename of the file if the package is a local file)
    313315                $download = $this->download_package( $package );
    314316                if ( is_wp_error($download) ) {
    315317                        $this->skin->error($download);
    316318                        $this->skin->after();
     319                        $this->skin->footer();
    317320                        return $download;
    318321                }
    319322
     
    324327                if ( is_wp_error($working_dir) ) {
    325328                        $this->skin->error($working_dir);
    326329                        $this->skin->after();
     330                        $this->skin->footer();
    327331                        return $working_dir;
    328332                }
    329333
     
    345349                        //Install Succeeded
    346350                        $this->skin->feedback('process_success');
    347351                }
     352
    348353                $this->skin->after();
    349354
    350                 if ( !$is_multi )
     355                if ( ! $is_multi )
    351356                        $this->skin->footer();
    352357
    353358                return $result;