Wordpress++
This commit is contained in:
1 parent
790f1487a2
commit
3f49ab1747
610 files changed
+58979
-36562
No files matched your search
@@ -16,13 +16,17 @@ if ( ! is_multisite() )
|
||||
if ( ! current_user_can( 'manage_network_users' ) )
|
||||
wp_die( __( 'You do not have permission to access this page.' ), 403 );
|
||||
|
||||
/**
|
||||
*
|
||||
* @param array $users
|
||||
*/
|
||||
function confirm_delete_users( $users ) {
|
||||
$current_user = wp_get_current_user();
|
||||
if ( ! is_array( $users ) || empty( $users ) ) {
|
||||
return false;
|
||||
}
|
||||
?>
|
||||
<h2><?php esc_html_e( 'Users' ); ?></h2>
|
||||
<h1><?php esc_html_e( 'Users' ); ?></h1>
|
||||
|
||||
<?php if ( 1 == count( $users ) ) : ?>
|
||||
<p><?php _e( 'You have chosen to delete the user from all networks and sites.' ); ?></p>
|
||||
@@ -86,7 +90,7 @@ function confirm_delete_users( $users ) {
|
||||
<li><label><input type="radio" id="delete_option0" name="delete[<?php echo $details->userblog_id . '][' . $delete_user->ID ?>]" value="delete" checked="checked" />
|
||||
<?php _e( 'Delete all content.' ); ?></label></li>
|
||||
<li><label><input type="radio" id="delete_option1" name="delete[<?php echo $details->userblog_id . '][' . $delete_user->ID ?>]" value="reassign" />
|
||||
<?php echo __( 'Attribute all content to:' ) . "</label>\n" . $user_dropdown; ?></li>
|
||||
<?php _e( 'Attribute all content to:' ) . "</label>\n" . $user_dropdown; ?></li>
|
||||
</ul>
|
||||
<?php
|
||||
}
|
||||
@@ -305,15 +309,15 @@ if ( isset( $_REQUEST['updated'] ) && $_REQUEST['updated'] == 'true' && ! empty(
|
||||
}
|
||||
?>
|
||||
<div class="wrap">
|
||||
<h2><?php esc_html_e( 'Users' );
|
||||
<h1><?php esc_html_e( 'Users' );
|
||||
if ( current_user_can( 'create_users') ) : ?>
|
||||
<a href="<?php echo network_admin_url('user-new.php'); ?>" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'user' ); ?></a><?php
|
||||
<a href="<?php echo network_admin_url('user-new.php'); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'user' ); ?></a><?php
|
||||
endif;
|
||||
|
||||
if ( !empty( $usersearch ) )
|
||||
printf( '<span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', esc_html( $usersearch ) );
|
||||
?>
|
||||
</h2>
|
||||
</h1>
|
||||
|
||||
<?php $wp_list_table->views(); ?>
|
||||
|
||||
|
||||
Reference in new issue
Block a user