| '+o.updates.l10n.noPlugins+" |
"))}),o.a11y.speak(o.updates.l10n.pluginDeleted,"polite"),p.trigger("wp-plugin-delete-success",i)},o.updates.deletePluginError=function(e){var t,a=o.template("item-update-row"),s=o.updates.adminNotice({className:"update-message notice-error notice-alt",message:e.errorMessage}),n=e.plugin?(t=r('tr.inactive[data-plugin="'+e.plugin+'"]')).siblings('[data-plugin="'+e.plugin+'"]'):(t=r('tr.inactive[data-slug="'+e.slug+'"]')).siblings('[data-slug="'+e.slug+'"]');o.updates.isValidResponse(e,"delete")&&(o.updates.maybeHandleCredentialError(e,"delete-plugin")||(n.length?(n.find(".notice-error").remove(),n.find(".plugin-update").append(s)):t.addClass("update").after(a({slug:e.slug,plugin:e.plugin||e.slug,colspan:r("#bulk-action-form").find("thead th:not(.hidden), thead td").length,content:s})),p.trigger("wp-plugin-delete-error",e)))},o.updates.updateTheme=function(e){var t;return e=_.extend({success:o.updates.updateThemeSuccess,error:o.updates.updateThemeError},e),(t="themes-network"===pagenow?r('[data-slug="'+e.slug+'"]').find(".update-message").removeClass("notice-error").addClass("updating-message notice-warning").find("p"):"customize"===pagenow?((t=r('[data-slug="'+e.slug+'"].notice').removeClass("notice-large")).find("h3").remove(),(t=t.add(r("#customize-control-installed_theme_"+e.slug).find(".update-message"))).addClass("updating-message").find("p")):((t=r("#update-theme").closest(".notice").removeClass("notice-large")).find("h3").remove(),(t=t.add(r('[data-slug="'+e.slug+'"]').find(".update-message"))).addClass("updating-message").find("p"))).html()!==o.updates.l10n.updating&&t.data("originaltext",t.html()),o.a11y.speak(o.updates.l10n.updatingMsg,"polite"),t.text(o.updates.l10n.updating),p.trigger("wp-theme-updating",e),o.updates.ajax("update-theme",e)},o.updates.updateThemeSuccess=function(e){var t,a,s=r("body.modal-open").length,n=r('[data-slug="'+e.slug+'"]'),l={className:"updated-message notice-success notice-alt",message:o.updates.l10n.themeUpdated};"customize"===pagenow?((n=r(".updating-message").siblings(".theme-name")).length&&(a=n.html().replace(e.oldVersion,e.newVersion),n.html(a)),t=r(".theme-info .notice").add(o.customize.control("installed_theme_"+e.slug).container.find(".theme").find(".update-message"))):"themes-network"===pagenow?(t=n.find(".update-message"),a=n.find(".theme-version-author-uri").html().replace(e.oldVersion,e.newVersion),n.find(".theme-version-author-uri").html(a)):(t=r(".theme-info .notice").add(n.find(".update-message")),(s?r(".load-customize:visible"):n.find(".load-customize")).focus()),o.updates.addAdminNotice(_.extend({selector:t},l)),o.a11y.speak(o.updates.l10n.updatedMsg,"polite"),o.updates.decrementCount("theme"),p.trigger("wp-theme-update-success",e),s&&"customize"!==pagenow&&r(".theme-info .theme-author").after(o.updates.adminNotice(l))},o.updates.updateThemeError=function(e){var t,a=r('[data-slug="'+e.slug+'"]'),s=o.updates.l10n.updateFailed.replace("%s",e.errorMessage);o.updates.isValidResponse(e,"update")&&(o.updates.maybeHandleCredentialError(e,"update-theme")||("customize"===pagenow&&(a=o.customize.control("installed_theme_"+e.slug).container.find(".theme")),"themes-network"===pagenow?t=a.find(".update-message "):(t=r(".theme-info .notice").add(a.find(".notice")),(r("body.modal-open").length?r(".load-customize:visible"):a.find(".load-customize")).focus()),o.updates.addAdminNotice({selector:t,className:"update-message notice-error notice-alt is-dismissible",message:s}),o.a11y.speak(s,"polite"),p.trigger("wp-theme-update-error",e)))},o.updates.installTheme=function(e){var t=r('.theme-install[data-slug="'+e.slug+'"]');return e=_.extend({success:o.updates.installThemeSuccess,error:o.updates.installThemeError},e),t.addClass("updating-message"),t.parents(".theme").addClass("focus"),t.html()!==o.updates.l10n.installing&&t.data("originaltext",t.html()),t.text(o.updates.l10n.installing).attr("aria-label",o.updates.l10n.themeInstallingLabel.replace("%s",t.data("name"))),o.a11y.speak(o.updates.l10n.installingMsg,"polite"),r('.install-theme-info, [data-slug="'+e.slug+'"]').removeClass("theme-install-failed").find(".notice.notice-error").remove(),p.trigger("wp-theme-installing",e),o.updates.ajax("install-theme",e)},o.updates.installThemeSuccess=function(e){var t,a=r(".wp-full-overlay-header, [data-slug="+e.slug+"]");p.trigger("wp-theme-install-success",e),t=a.find(".button-primary").removeClass("updating-message").addClass("updated-message disabled").attr("aria-label",o.updates.l10n.themeInstalledLabel.replace("%s",e.themeName)).text(o.updates.l10n.themeInstalled),o.a11y.speak(o.updates.l10n.installedMsg,"polite"),setTimeout(function(){e.activateUrl&&t.attr("href",e.activateUrl).removeClass("theme-install updated-message disabled").addClass("activate").attr("aria-label",o.updates.l10n.activateThemeLabel.replace("%s",e.themeName)).text(o.updates.l10n.activateTheme),e.customizeUrl&&t.siblings(".preview").replaceWith(function(){return r("