Make WordPress Core

Changeset 25370


Ignore:
Timestamp:
09/12/2013 02:42:10 AM (12 years ago)
Author:
SergeyBiryukov
Message:

Consistently call skin methods in WP_Upgrader. fixes #25254.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-upgrader.php

    r25272 r25370  
    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        }
    306 
    307         if ( !$is_multi ) // call $this->header separately if running multiple times
    308             $this->skin->header();
    309 
    310         $this->skin->before();
    311314
    312315        //Download the package (Note, This just returns the filename of the file if the package is a local file)
     
    315318            $this->skin->error($download);
    316319            $this->skin->after();
     320            if ( ! $is_multi )
     321                $this->skin->footer();
    317322            return $download;
    318323        }
     
    325330            $this->skin->error($working_dir);
    326331            $this->skin->after();
     332            if ( ! $is_multi )
     333                $this->skin->footer();
    327334            return $working_dir;
    328335        }
     
    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
Note: See TracChangeset for help on using the changeset viewer.