Ticket #37943: 37943.patch
File 37943.patch, 1.2 KB (added by , 9 years ago) |
---|
-
src/wp-admin/js/updates.js
641 641 * @param {string} response.activateUrl URL to activate the just installed plugin. 642 642 */ 643 643 wp.updates.installImporterSuccess = function( response ) { 644 var activateUrl = response.activateUrl.replace( '/network', '' ); 645 644 646 wp.updates.addAdminNotice( { 645 647 id: 'install-success', 646 648 className: 'notice-success is-dismissible', 647 message: wp.updates.l10n.importerInstalledMsg.replace( '%s', response.activateUrl + '&from=import' )649 message: wp.updates.l10n.importerInstalledMsg.replace( '%s', activateUrl + '&from=import' ) 648 650 } ); 649 651 650 652 $( '[data-slug="' + response.slug + '"]' ) … … 651 653 .removeClass( 'install-now updating-message' ) 652 654 .addClass( 'activate-now' ) 653 655 .attr({ 654 'href': response.activateUrl + '&from=import',656 'href': activateUrl + '&from=import', 655 657 'aria-label': wp.updates.l10n.activateImporterLabel.replace( '%s', response.pluginName ) 656 658 }) 657 659 .text( wp.updates.l10n.activateImporter );