Make WordPress Core


Ignore:
Timestamp:
06/27/2025 03:07:29 PM (15 months ago)
Author:
johnbillion
Message:

Networks and Sites: Correct and improve terminology relating to deactivated, deleted, and archived sites on a Multisite installation.

  • Deleting a site is permanent action, so the terminology around site deletion has been updated to reflect that.
  • Site deactivation has been renamed to "Flag for Deletion", and a site with this status is no longer incorrectly shown as "Deleted".
  • Extra helper text has been added to the screen shown when changing a site's status to make the effects clearer to Super Admins.

Props kawauso, ryan_b, wonderboymusic, nacin, DrewAPicture, martythornley, SergeyBiryukov, jeremyfelt, ideag, jorbin, sukhendu2002, johnbillion, realloc.

Fixes #15801

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/sites.php

    r59784 r60358  
    3434                        '<ul><li>' . __( 'An Edit link to a separate Edit Site screen.' ) . '</li>' .
    3535                        '<li>' . __( 'Dashboard leads to the Dashboard for that site.' ) . '</li>' .
    36                         '<li>' . __( 'Deactivate, Archive, and Spam which lead to confirmation screens. These actions can be reversed later.' ) . '</li>' .
    37                         '<li>' . __( 'Delete which is a permanent action after the confirmation screen.' ) . '</li>' .
     36                        '<li>' . __( 'Flag for Deletion, Archive, and Spam which lead to confirmation screens. These actions can be reversed later.' ) . '</li>' .
     37                        '<li>' . __( 'Delete Permanently which is a permanent action after the confirmation screen.' ) . '</li>' .
    3838                        '<li>' . __( 'Visit to go to the front-end of the live site.' ) . '</li></ul>',
    3939        )
     
    6262        $manage_actions = array(
    6363                /* translators: %s: Site URL. */
    64                 'activateblog'   => __( 'You are about to activate the site %s.' ),
    65                 /* translators: %s: Site URL. */
    66                 'deactivateblog' => __( 'You are about to deactivate the site %s.' ),
     64                'activateblog'   => __( 'You are about to remove the deletion flag from the site %s.' ),
     65                /* translators: %s: Site URL. */
     66                'deactivateblog' => __( 'You are about to flag the site %s for deletion.' ),
    6767                /* translators: %s: Site URL. */
    6868                'unarchiveblog'  => __( 'You are about to unarchive the site %s.' ),
     
    107107                $site_details = get_site( $id );
    108108                $site_address = untrailingslashit( $site_details->domain . $site_details->path );
     109                $submit       = __( 'Confirm' );
    109110
    110111                require_once ABSPATH . 'wp-admin/admin-header.php';
     
    125126                                                </div>
    126127                                                <?php
    127                                         } else {
    128                                                 $submit = __( 'Confirm' );
     128                                        } elseif ( 'archiveblog' === $site_action ) {
     129                                                ?>
     130                                                <div class="notice notice-warning inline">
     131                                                        <p><?php _e( 'Archiving a site makes the site unavailable to its users and visitors. This is a reversible action.' ); ?>
     132                                                </div>
     133                                                <?php
     134                                        } elseif ( 'deactivateblog' === $site_action ) {
     135                                                ?>
     136                                                <div class="notice notice-warning inline">
     137                                                        <p><?php _e( 'Flagging a site for deletion makes the site unavailable to its users and visitors. This is a reversible action. A super admin can permanently delete the site at a later date.' ); ?>
     138                                                </div>
     139                                                <?php
    129140                                        }
    130141                                        ?>
     
    206217                                                                                <input type="hidden" name="_wp_http_referer" value="<?php echo esc_attr( wp_get_referer() ); ?>" />
    207218                                                                                <?php wp_nonce_field( 'ms-delete-sites', '_wpnonce', false ); ?>
     219                                                                                <div class="notice notice-warning inline">
     220                                                                                        <p><?php _e( 'Deleting a site is a permanent action that cannot be undone. This will delete the entire site and its uploads directory.' ); ?>
     221                                                                                </div>
    208222                                                                                <p><?php _e( 'You are about to delete the following sites:' ); ?></p>
    209223                                                                                <ul class="ul-disc">
     
    221235                                                                                        <?php endforeach; ?>
    222236                                                                                </ul>
    223                                                                                 <?php submit_button( __( 'Confirm' ), 'primary' ); ?>
     237                                                                                <?php submit_button( __( 'Delete these sites permanently' ), 'primary' ); ?>
    224238                                                                        </form>
    225239                                                                </div>
     
    272286
    273287                        /**
    274                          * Fires after a network site is activated.
     288                         * Fires after a network site has its deletion flag removed.
    275289                         *
    276290                         * @since MU (3.0.0)
    277291                         *
    278                          * @param int $id The ID of the activated site.
     292                         * @param int $id The ID of the reactivated site.
    279293                         */
    280294                        do_action( 'activate_blog', $id );
     
    283297                case 'deactivateblog':
    284298                        /**
    285                          * Fires before a network site is deactivated.
     299                         * Fires before a network site is flagged for deletion.
    286300                         *
    287301                         * @since MU (3.0.0)
    288302                         *
    289                          * @param int $id The ID of the site being deactivated.
     303                         * @param int $id The ID of the site being flagged for deletion.
    290304                         */
    291305                        do_action( 'deactivate_blog', $id );
     
    327341                        break;
    328342                case 'all_delete':
    329                         $msg = __( 'Sites deleted.' );
     343                        $msg = __( 'Sites permanently deleted.' );
    330344                        break;
    331345                case 'delete':
    332                         $msg = __( 'Site deleted.' );
     346                        $msg = __( 'Site permanently deleted.' );
    333347                        break;
    334348                case 'not_deleted':
     
    342356                        break;
    343357                case 'activateblog':
    344                         $msg = __( 'Site activated.' );
     358                        $msg = __( 'Site deletion flag removed.' );
    345359                        break;
    346360                case 'deactivateblog':
    347                         $msg = __( 'Site deactivated.' );
     361                        $msg = __( 'Site flagged for deletion.' );
    348362                        break;
    349363                case 'unspamblog':
Note: See TracChangeset for help on using the changeset viewer.