Make WordPress Core

Ticket #56076: 56076_-_Improve_consistency_in_UI_strings__Always_refer_to_site_as__Deactivated_,_n.patch

File 56076_-_Improve_consistency_in_UI_strings__Always_refer_to_site_as__Deactivated_,_n.patch, 2.4 KB (added by ideag, 22 months ago)

simple patch to improve consistency in UI strings

  • src/wp-admin/includes/class-wp-ms-sites-list-table.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
    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
    a b  
    3838                $this->status_list = array(
    3939                        'archived' => array( 'site-archived', __( 'Archived' ) ),
    4040                        'spam'     => array( 'site-spammed', _x( 'Spam', 'site' ) ),
    41                         'deleted'  => array( 'site-deleted', __( 'Deleted' ) ),
     41                        'deleted'  => array( 'site-deleted', __( 'Deactivated' ) ),
    4242                        'mature'   => array( 'site-mature', __( 'Mature' ) ),
    4343                );
    4444
     
    252252
    253253                        /* translators: %s: Number of sites. */
    254254                        'deleted'  => _n_noop(
    255                                 'Deleted <span class="count">(%s)</span>',
    256                                 'Deleted <span class="count">(%s)</span>'
     255                                'Deactivated <span class="count">(%s)</span>',
     256                                'Deactivated <span class="count">(%s)</span>'
    257257                        ),
    258258                );
    259259
     
    636636                 * @since 5.3.0
    637637                 *
    638638                 * @param array $site_states An array of site states. Default 'Main',
    639                  *                           'Archived', 'Mature', 'Spam', 'Deleted'.
     639                 *                           'Archived', 'Mature', 'Spam', 'Deactivated'.
    640640                 * @param WP_Site $site The current site object.
    641641                 */
    642642                $site_states = apply_filters( 'display_site_states', $site_states, $_site );
  • src/wp-admin/network/site-info.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
    diff --git a/src/wp-admin/network/site-info.php b/src/wp-admin/network/site-info.php
    a b  
    186186                if ( ! $is_main_site ) {
    187187                        $attribute_fields['archived'] = __( 'Archived' );
    188188                        $attribute_fields['spam']     = _x( 'Spam', 'site' );
    189                         $attribute_fields['deleted']  = __( 'Deleted' );
     189                        $attribute_fields['deleted']  = __( 'Deactivated' );
    190190                }
    191191                $attribute_fields['mature'] = __( 'Mature' );
    192192                ?>