Make WordPress Core

Ticket #51358: 51358_sentence_case.diff

File 51358_sentence_case.diff, 1.2 KB (added by kebbet, 4 years ago)
  • src/wp-admin/network/sites.php

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