@@ -322,6 +322,7 @@ public function init() {
322322 'page_title ' => __ ( 'Install Required Plugins ' , 'tgmpa ' ),
323323 'menu_title ' => __ ( 'Install Plugins ' , 'tgmpa ' ),
324324 'installing ' => __ ( 'Installing Plugin: %s ' , 'tgmpa ' ),
325+ 'updating ' => __ ( 'Updating Plugin: %s ' , 'tgmpa ' ),
325326 'oops ' => __ ( 'Something went wrong with the plugin API. ' , 'tgmpa ' ),
326327 'notice_can_install_required ' => _n_noop (
327328 'This theme requires the following plugin: %1$s. ' ,
@@ -753,15 +754,17 @@ protected function do_plugin_install() {
753754 require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php ' ;
754755 }
755756
757+ $ title = ( 'update ' === $ install_type ) ? $ this ->strings ['updating ' ] : $ this ->strings ['installing ' ];
756758 $ skin_args = array (
757759 'type ' => ( 'bundled ' !== $ this ->plugins [ $ slug ]['source_type ' ] ) ? 'web ' : 'upload ' ,
758- 'title ' => sprintf ( $ this -> strings [ ' installing ' ] , $ this ->plugins [ $ slug ]['name ' ] ),
760+ 'title ' => sprintf ( $ title , $ this ->plugins [ $ slug ]['name ' ] ),
759761 'url ' => esc_url_raw ( $ url ),
760762 'nonce ' => $ install_type . '-plugin_ ' . $ slug ,
761763 'plugin ' => '' ,
762764 'api ' => $ api ,
763765 'extra ' => $ extra ,
764766 );
767+ unset( $ title );
765768
766769 if ( 'update ' === $ install_type ) {
767770 $ skin_args ['plugin ' ] = $ this ->plugins [ $ slug ]['file_path ' ];
0 commit comments