- Timestamp:
- 11/30/2017 11:09:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-language-pack-upgrader-skin.php
r41161 r42343 17 17 */ 18 18 class Language_Pack_Upgrader_Skin extends WP_Upgrader_Skin { 19 public $language_update = null;20 public $done_header = false;21 public $done_footer = false;19 public $language_update = null; 20 public $done_header = false; 21 public $done_footer = false; 22 22 public $display_footer_actions = true; 23 23 24 24 /** 25 *26 25 * @param array $args 27 26 */ 28 27 public function __construct( $args = array() ) { 29 $defaults = array( 'url' => '', 'nonce' => '', 'title' => __( 'Update Translations' ), 'skip_header_footer' => false ); 30 $args = wp_parse_args( $args, $defaults ); 28 $defaults = array( 29 'url' => '', 30 'nonce' => '', 31 'title' => __( 'Update Translations' ), 32 'skip_header_footer' => false, 33 ); 34 $args = wp_parse_args( $args, $defaults ); 31 35 if ( $args['skip_header_footer'] ) { 32 $this->done_header = true;33 $this->done_footer = true;36 $this->done_header = true; 37 $this->done_footer = true; 34 38 $this->display_footer_actions = false; 35 39 } … … 48 52 49 53 /** 50 *51 54 * @param string|WP_Error $error 52 55 */ … … 67 70 public function bulk_footer() { 68 71 $this->decrement_update_count( 'translation' ); 69 $update_actions = array();72 $update_actions = array(); 70 73 $update_actions['updates_page'] = '<a href="' . self_admin_url( 'update-core.php' ) . '" target="_parent">' . __( 'Return to WordPress Updates page' ) . '</a>'; 71 74 … … 79 82 $update_actions = apply_filters( 'update_translations_complete_actions', $update_actions ); 80 83 81 if ( $update_actions && $this->display_footer_actions ) 84 if ( $update_actions && $this->display_footer_actions ) { 82 85 $this->feedback( implode( ' | ', $update_actions ) ); 86 } 83 87 } 84 88 }
Note: See TracChangeset
for help on using the changeset viewer.