Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions src/wp-admin/network/sites.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,25 +122,28 @@
$submit = __( 'Delete this site permanently' );
?>
<div class="notice notice-warning inline">
<p><?php _e( 'Deleting a site is a permanent action that cannot be undone. This will delete the entire site and its uploads directory.' ); ?>
<p><?php _e( 'Deleting a site is a permanent action that cannot be undone. This will delete the entire site and its uploads directory.' ); ?></p>
</div>
<?php
} elseif ( 'archiveblog' === $site_action ) {
?>
<div class="notice notice-warning inline">
<p><?php _e( 'Archiving a site makes the site unavailable to its users and visitors. This is a reversible action.' ); ?>
<p><?php _e( 'Archiving a site makes the site unavailable to its users and visitors. This is a reversible action.' ); ?></p>
</div>
<?php
} elseif ( 'deactivateblog' === $site_action ) {
?>
<div class="notice notice-warning inline">
<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.' ); ?>
<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.' ); ?></p>
</div>
<?php
}
?>
<p><?php printf( $manage_actions[ $site_action ], "<strong>{$site_address}</strong>" ); ?></p>
<?php submit_button( $submit, 'primary' ); ?>
<p class="submit">
<?php submit_button( $submit, 'primary', 'submit', false ); ?>
<a href="<?php echo esc_url( wp_get_referer() ? wp_get_referer() : network_admin_url( 'sites.php' ) ); ?>" class="button"><?php _e( 'Cancel' ); ?></a>
</p>
</form>
</div>
<?php
Expand Down Expand Up @@ -217,7 +220,7 @@
<input type="hidden" name="_wp_http_referer" value="<?php echo esc_attr( wp_get_referer() ); ?>" />
<?php wp_nonce_field( 'ms-delete-sites', '_wpnonce', false ); ?>
<div class="notice notice-warning inline">
<p><?php _e( 'Deleting a site is a permanent action that cannot be undone. This will delete the entire site and its uploads directory.' ); ?>
<p><?php _e( 'Deleting a site is a permanent action that cannot be undone. This will delete the entire site and its uploads directory.' ); ?></p>
</div>
<p><?php _e( 'You are about to delete the following sites:' ); ?></p>
<ul class="ul-disc">
Expand All @@ -234,7 +237,10 @@
</li>
<?php endforeach; ?>
</ul>
<?php submit_button( __( 'Delete these sites permanently' ), 'primary' ); ?>
<p class="submit">
<?php submit_button( __( 'Delete these sites permanently' ), 'primary', 'submit', false ); ?>
<a href="<?php echo esc_url( wp_get_referer() ? wp_get_referer() : network_admin_url( 'sites.php' ) ); ?>" class="button"><?php _e( 'Cancel' ); ?></a>
</p>
</form>
</div>
<?php
Expand Down
Loading