Make WordPress Core

Ticket #51358: 51358.2.diff

File 51358.2.diff, 1.2 KB (added by cafenoirdesign, 18 months ago)

Refresh for existing patch

  • src/wp-admin/network/sites.php

    diff --git a/src/wp-admin/network/sites.php b/src/wp-admin/network/sites.php
    index 402c047312..a6118e7f4d 100644
    a b if ( isset( $_GET['action'] ) ) { 
    118118                                        <input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" />
    119119                                        <input type="hidden" name="_wp_http_referer" value="<?php echo esc_attr( wp_get_referer() ); ?>" />
    120120                                        <?php wp_nonce_field( $site_action . '_' . $id, '_wpnonce', false ); ?>
    121                                         <p><?php printf( $manage_actions[ $site_action ], $site_address ); ?></p>
    122                                         <?php submit_button( __( 'Confirm' ), 'primary' ); ?>
     121                                        <?php
     122                                        if ( 'deleteblog' === $site_action ) {
     123                                                $submit = __( 'Delete this site permanently' );
     124                                                ?>
     125                                                <div class="notice notice-warning inline">
     126                                                        <p><?php _e( 'Deleting a site is a permanent action that cannot be undone. This will delete the entire site and its uploads directory.' ); ?>
     127                                                </div>
     128                                                <?php
     129                                        } else {
     130                                                $submit = __( 'Confirm' );
     131                                        }
     132                                        ?>
     133                                        <p><?php printf( $manage_actions[ $site_action ], "<b>{$site_address}</b>" ); ?></p>
     134                                        <?php submit_button( $submit, 'primary' ); ?>
    123135                                </form>
    124136                        </div>
    125137                <?php