Make WordPress Core

Ticket #25254: 25254.2.diff

File 25254.2.diff, 1.5 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                        if ( ! $is_multi )
     311                                $this->skin->footer();
    304312                        return $res;
    305313                }
    306314
    307                 if ( !$is_multi ) // call $this->header separately if running multiple times
    308                         $this->skin->header();
    309 
    310                 $this->skin->before();
    311 
    312315                //Download the package (Note, This just returns the filename of the file if the package is a local file)
    313316                $download = $this->download_package( $package );
    314317                if ( is_wp_error($download) ) {
    315318                        $this->skin->error($download);
    316319                        $this->skin->after();
     320                        if ( ! $is_multi )
     321                                $this->skin->footer();
    317322                        return $download;
    318323                }
    319324
     
    324329                if ( is_wp_error($working_dir) ) {
    325330                        $this->skin->error($working_dir);
    326331                        $this->skin->after();
     332                        if ( ! $is_multi )
     333                                $this->skin->footer();
    327334                        return $working_dir;
    328335                }
    329336
     
    345352                        //Install Succeeded
    346353                        $this->skin->feedback('process_success');
    347354                }
     355
    348356                $this->skin->after();
    349357
    350                 if ( !$is_multi )
     358                if ( ! $is_multi )
    351359                        $this->skin->footer();
    352360
    353361                return $result;