Ticket #28947: 28947.2.diff
| File 28947.2.diff, 1.3 KB (added by , 11 years ago) |
|---|
-
src/wp-admin/includes/class-wp-upgrader-skins.php
18 18 19 19 public $upgrader; 20 20 public $done_header = false; 21 public $done_footer = false; 21 22 public $result = false; 22 23 23 24 public function __construct($args = array()) { … … 47 48 } 48 49 49 50 public function header() { 50 if ( $this->done_header ) 51 if ( $this->done_header ) { 51 52 return; 53 } 52 54 $this->done_header = true; 53 55 echo '<div class="wrap">'; 54 56 echo '<h2>' . $this->options['title'] . '</h2>'; 55 57 } 56 58 public function footer() { 59 if ( $this->done_footer ) { 60 return; 61 } 62 $this->done_footer = true; 57 63 echo '</div>'; 58 64 } 59 65 … … 628 634 class Language_Pack_Upgrader_Skin extends WP_Upgrader_Skin { 629 635 public $language_update = null; 630 636 public $done_header = false; 637 public $done_footer = false; 631 638 public $display_footer_actions = true; 632 639 633 640 public function __construct( $args = array() ) { … … 635 642 $args = wp_parse_args( $args, $defaults ); 636 643 if ( $args['skip_header_footer'] ) { 637 644 $this->done_header = true; 645 $this->done_footer = true; 638 646 $this->display_footer_actions = false; 639 647 } 640 648 parent::__construct( $args );