diff --git a/wp-admin/includes/class-wp-ms-themes-list-table.php b/wp-admin/includes/class-wp-ms-themes-list-table.php index 11ef7391de..11b17304c7 100644 --- a/wp-admin/includes/class-wp-ms-themes-list-table.php +++ b/wp-admin/includes/class-wp-ms-themes-list-table.php @@ -276,7 +276,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table { if ( $this->has_items ) { _e( 'No themes found.' ); } else { - _e( 'You do not appear to have any themes available at this time.' ); + _e( 'No themes are currently available.' ); } } diff --git a/wp-admin/includes/class-wp-plugins-list-table.php b/wp-admin/includes/class-wp-plugins-list-table.php index 12793e810e..89f7dffc2b 100644 --- a/wp-admin/includes/class-wp-plugins-list-table.php +++ b/wp-admin/includes/class-wp-plugins-list-table.php @@ -384,7 +384,7 @@ class WP_Plugins_List_Table extends WP_List_Table { } elseif ( ! empty( $plugins['all'] ) ) { _e( 'No plugins found.' ); } else { - _e( 'You do not appear to have any plugins available at this time.' ); + _e( 'No plugins are currently available.' ); } } diff --git a/wp-admin/js/updates.js b/wp-admin/js/updates.js index 994e99d8e4..ff8cb07e96 100644 --- a/wp-admin/js/updates.js +++ b/wp-admin/js/updates.js @@ -941,7 +941,7 @@ $views.find( '.all' ).remove(); if ( ! $form.find( 'tr.no-items' ).length ) { - $form.find( '#the-list' ).append( '
'+t+"
"),a.on("click",".notice.is-dismissible .notice-dismiss",function(){setTimeout(function(){a.removeClass("plugin-card-update-failed").find(".column-name a").focus()},200)}),s.removeClass("updating-message").addClass("button-disabled").attr("aria-label",u(d("%s installation failed","plugin"),s.data("name"))).text(w("Installation Failed!")),m.a11y.speak(t,"assertive"),f.trigger("wp-plugin-install-error",e)))},m.updates.installImporterSuccess=function(e){m.updates.addAdminNotice({id:"install-success",className:"notice-success is-dismissible",message:u(w('Importer installed successfully. Run importer'),e.activateUrl+"&from=import")}),g('[data-slug="'+e.slug+'"]').removeClass("install-now updating-message").addClass("activate-now").attr({href:e.activateUrl+"&from=import","aria-label":u(w("Run %s"),e.pluginName)}).text(w("Run Importer")),m.a11y.speak(w("Installation completed successfully."),"polite"),f.trigger("wp-importer-install-success",e)},m.updates.installImporterError=function(e){var t=u(w("Installation failed: %s"),e.errorMessage),a=g('[data-slug="'+e.slug+'"]'),s=a.data("name");m.updates.isValidResponse(e,"install")&&(m.updates.maybeHandleCredentialError(e,"install-plugin")||(m.updates.addAdminNotice({id:e.errorCode,className:"notice-error is-dismissible",message:t}),a.removeClass("updating-message").attr("aria-label",u(d("Install %s now","plugin"),s)).text(w("Install Now")),m.a11y.speak(t,"assertive"),f.trigger("wp-importer-install-error",e)))},m.updates.deletePlugin=function(e){var t=g('[data-plugin="'+e.plugin+'"]').find(".row-actions a.delete");return e=_.extend({success:m.updates.deletePluginSuccess,error:m.updates.deletePluginError},e),t.html()!==w("Deleting...")&&t.data("originaltext",t.html()).text(w("Deleting...")),m.a11y.speak(w("Deleting..."),"polite"),f.trigger("wp-plugin-deleting",e),m.updates.ajax("delete-plugin",e)},m.updates.deletePluginSuccess=function(l){g('[data-plugin="'+l.plugin+'"]').css({backgroundColor:"#faafaa"}).fadeOut(350,function(){var e=g("#bulk-action-form"),t=g(".subsubsub"),a=g(this),s=e.find("thead th:not(.hidden), thead td").length,n=m.template("item-deleted-row"),i=h.plugins;a.hasClass("plugin-update-tr")||a.after(n({slug:l.slug,plugin:l.plugin,colspan:s,name:l.pluginName})),a.remove(),-1!==_.indexOf(i.upgrade,l.plugin)&&(i.upgrade=_.without(i.upgrade,l.plugin),m.updates.decrementCount("plugin")),-1!==_.indexOf(i.inactive,l.plugin)&&(i.inactive=_.without(i.inactive,l.plugin),i.inactive.length?t.find(".inactive .count").text("("+i.inactive.length+")"):t.find(".inactive").remove()),-1!==_.indexOf(i.active,l.plugin)&&(i.active=_.without(i.active,l.plugin),i.active.length?t.find(".active .count").text("("+i.active.length+")"):t.find(".active").remove()),-1!==_.indexOf(i.recently_activated,l.plugin)&&(i.recently_activated=_.without(i.recently_activated,l.plugin),i.recently_activated.length?t.find(".recently_activated .count").text("("+i.recently_activated.length+")"):t.find(".recently_activated").remove()),i.all=_.without(i.all,l.plugin),i.all.length?t.find(".all .count").text("("+i.all.length+")"):(e.find(".tablenav").css({visibility:"hidden"}),t.find(".all").remove(),e.find("tr.no-items").length||e.find("#the-list").append(''+e+"
'+t+"
"),a.on("click",".notice.is-dismissible .notice-dismiss",function(){setTimeout(function(){a.removeClass("plugin-card-update-failed").find(".column-name a").focus()},200)}),s.removeClass("updating-message").addClass("button-disabled").attr("aria-label",u(d("%s installation failed","plugin"),s.data("name"))).text(w("Installation Failed!")),m.a11y.speak(t,"assertive"),f.trigger("wp-plugin-install-error",e)))},m.updates.installImporterSuccess=function(e){m.updates.addAdminNotice({id:"install-success",className:"notice-success is-dismissible",message:u(w('Importer installed successfully. Run importer'),e.activateUrl+"&from=import")}),g('[data-slug="'+e.slug+'"]').removeClass("install-now updating-message").addClass("activate-now").attr({href:e.activateUrl+"&from=import","aria-label":u(w("Run %s"),e.pluginName)}).text(w("Run Importer")),m.a11y.speak(w("Installation completed successfully."),"polite"),f.trigger("wp-importer-install-success",e)},m.updates.installImporterError=function(e){var t=u(w("Installation failed: %s"),e.errorMessage),a=g('[data-slug="'+e.slug+'"]'),s=a.data("name");m.updates.isValidResponse(e,"install")&&(m.updates.maybeHandleCredentialError(e,"install-plugin")||(m.updates.addAdminNotice({id:e.errorCode,className:"notice-error is-dismissible",message:t}),a.removeClass("updating-message").attr("aria-label",u(d("Install %s now","plugin"),s)).text(w("Install Now")),m.a11y.speak(t,"assertive"),f.trigger("wp-importer-install-error",e)))},m.updates.deletePlugin=function(e){var t=g('[data-plugin="'+e.plugin+'"]').find(".row-actions a.delete");return e=_.extend({success:m.updates.deletePluginSuccess,error:m.updates.deletePluginError},e),t.html()!==w("Deleting...")&&t.data("originaltext",t.html()).text(w("Deleting...")),m.a11y.speak(w("Deleting..."),"polite"),f.trigger("wp-plugin-deleting",e),m.updates.ajax("delete-plugin",e)},m.updates.deletePluginSuccess=function(l){g('[data-plugin="'+l.plugin+'"]').css({backgroundColor:"#faafaa"}).fadeOut(350,function(){var e=g("#bulk-action-form"),t=g(".subsubsub"),a=g(this),s=e.find("thead th:not(.hidden), thead td").length,n=m.template("item-deleted-row"),i=h.plugins;a.hasClass("plugin-update-tr")||a.after(n({slug:l.slug,plugin:l.plugin,colspan:s,name:l.pluginName})),a.remove(),-1!==_.indexOf(i.upgrade,l.plugin)&&(i.upgrade=_.without(i.upgrade,l.plugin),m.updates.decrementCount("plugin")),-1!==_.indexOf(i.inactive,l.plugin)&&(i.inactive=_.without(i.inactive,l.plugin),i.inactive.length?t.find(".inactive .count").text("("+i.inactive.length+")"):t.find(".inactive").remove()),-1!==_.indexOf(i.active,l.plugin)&&(i.active=_.without(i.active,l.plugin),i.active.length?t.find(".active .count").text("("+i.active.length+")"):t.find(".active").remove()),-1!==_.indexOf(i.recently_activated,l.plugin)&&(i.recently_activated=_.without(i.recently_activated,l.plugin),i.recently_activated.length?t.find(".recently_activated .count").text("("+i.recently_activated.length+")"):t.find(".recently_activated").remove()),i.all=_.without(i.all,l.plugin),i.all.length?t.find(".all .count").text("("+i.all.length+")"):(e.find(".tablenav").css({visibility:"hidden"}),t.find(".all").remove(),e.find("tr.no-items").length||e.find("#the-list").append(''+e+"