From 1f1fe55aa9054e57ed76ed1c8396b00f20c3f98f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ar=C5=ABnas=20Liuiza?= Date: Fri, 19 May 2023 17:06:34 +0300 Subject: [PATCH] 56076 Fix UI inconsitency to always refer to the site as Deactivated --- src/wp-admin/includes/class-wp-ms-sites-list-table.php | 8 ++++---- src/wp-admin/network/site-info.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/wp-admin/includes/class-wp-ms-sites-list-table.php b/src/wp-admin/includes/class-wp-ms-sites-list-table.php index d61e671a038f3..99aebe3fd87a5 100644 --- a/src/wp-admin/includes/class-wp-ms-sites-list-table.php +++ b/src/wp-admin/includes/class-wp-ms-sites-list-table.php @@ -37,7 +37,7 @@ public function __construct( $args = array() ) { $this->status_list = array( 'archived' => array( 'site-archived', __( 'Archived' ) ), 'spam' => array( 'site-spammed', _x( 'Spam', 'site' ) ), - 'deleted' => array( 'site-deleted', __( 'Deleted' ) ), + 'deleted' => array( 'site-deleted', __( 'Deactivated' ) ), 'mature' => array( 'site-mature', __( 'Mature' ) ), ); @@ -256,8 +256,8 @@ protected function get_views() { /* translators: %s: Number of sites. */ 'deleted' => _n_noop( - 'Deleted (%s)', - 'Deleted (%s)' + 'Deactivated (%s)', + 'Deactivated (%s)' ), ); @@ -652,7 +652,7 @@ protected function site_states( $site ) { * @since 5.3.0 * * @param string[] $site_states An array of site states. Default 'Main', - * 'Archived', 'Mature', 'Spam', 'Deleted'. + * 'Archived', 'Mature', 'Spam', 'Deactivated'. * @param WP_Site $site The current site object. */ $site_states = apply_filters( 'display_site_states', $site_states, $_site ); diff --git a/src/wp-admin/network/site-info.php b/src/wp-admin/network/site-info.php index 6030dcd50b67f..5655d0ebdeb0b 100644 --- a/src/wp-admin/network/site-info.php +++ b/src/wp-admin/network/site-info.php @@ -186,7 +186,7 @@ if ( ! $is_main_site ) { $attribute_fields['archived'] = __( 'Archived' ); $attribute_fields['spam'] = _x( 'Spam', 'site' ); - $attribute_fields['deleted'] = __( 'Deleted' ); + $attribute_fields['deleted'] = __( 'Deactivated' ); } $attribute_fields['mature'] = __( 'Mature' ); ?>