summaryrefslogtreecommitdiff
path: root/www/crm/wp-admin/network
diff options
context:
space:
mode:
Diffstat (limited to 'www/crm/wp-admin/network')
-rw-r--r--www/crm/wp-admin/network/settings.php23
-rw-r--r--www/crm/wp-admin/network/site-info.php4
-rw-r--r--www/crm/wp-admin/network/site-new.php4
-rw-r--r--www/crm/wp-admin/network/site-settings.php2
-rw-r--r--www/crm/wp-admin/network/site-users.php6
-rw-r--r--www/crm/wp-admin/network/user-new.php4
6 files changed, 21 insertions, 22 deletions
diff --git a/www/crm/wp-admin/network/settings.php b/www/crm/wp-admin/network/settings.php
index eeffa514..375367a2 100644
--- a/www/crm/wp-admin/network/settings.php
+++ b/www/crm/wp-admin/network/settings.php
@@ -148,7 +148,7 @@ if ( isset( $_GET['updated'] ) ) {
<form method="post" action="settings.php" novalidate="novalidate">
<?php wp_nonce_field( 'siteoptions' ); ?>
<h2><?php _e( 'Operational Settings' ); ?></h2>
- <table class="form-table">
+ <table class="form-table" role="presentation">
<tr>
<th scope="row"><label for="site_name"><?php _e( 'Network Title' ); ?></label></th>
<td>
@@ -188,7 +188,7 @@ if ( isset( $_GET['updated'] ) ) {
</tr>
</table>
<h2><?php _e( 'Registration Settings' ); ?></h2>
- <table class="form-table">
+ <table class="form-table" role="presentation">
<tr>
<th scope="row"><?php _e( 'Allow new registrations' ); ?></th>
<?php
@@ -277,7 +277,7 @@ if ( isset( $_GET['updated'] ) ) {
</table>
<h2><?php _e( 'New Site Settings' ); ?></h2>
- <table class="form-table">
+ <table class="form-table" role="presentation">
<tr>
<th scope="row"><label for="welcome_email"><?php _e( 'Welcome Email' ); ?></label></th>
@@ -358,7 +358,7 @@ if ( isset( $_GET['updated'] ) ) {
</tr>
</table>
<h2><?php _e( 'Upload Settings' ); ?></h2>
- <table class="form-table">
+ <table class="form-table" role="presentation">
<tr>
<th scope="row"><?php _e( 'Site upload space' ); ?></th>
<td>
@@ -402,7 +402,7 @@ if ( isset( $_GET['updated'] ) ) {
if ( ! empty( $languages ) || ! empty( $translations ) ) {
?>
<h2><?php _e( 'Language Settings' ); ?></h2>
- <table class="form-table">
+ <table class="form-table" role="presentation">
<tr>
<th><label for="WPLANG"><?php _e( 'Default Language' ); ?></label></th>
<td>
@@ -452,16 +452,15 @@ if ( isset( $_GET['updated'] ) ) {
*
* @param string[] $admin_menus Associative array of the menu items available.
*/
- $menu_items = apply_filters( 'mu_menu_items', array( 'plugins' => __( 'Plugins' ) ) );
- $fieldset_end = '';
- if ( count( (array) $menu_items ) > 1 ) {
- echo '<fieldset><legend class="screen-reader-text">' . __( 'Enable menus' ) . '</legend>';
- $fieldset_end = '</fieldset>';
- }
+ $menu_items = apply_filters( 'mu_menu_items', array( 'plugins' => __( 'Plugins' ) ) );
+
+ echo '<fieldset><legend class="screen-reader-text">' . __( 'Enable menus' ) . '</legend>';
+
foreach ( (array) $menu_items as $key => $val ) {
echo "<label><input type='checkbox' name='menu_items[" . $key . "]' value='1'" . ( isset( $menu_perms[ $key ] ) ? checked( $menu_perms[ $key ], '1', false ) : '' ) . ' /> ' . esc_html( $val ) . '</label><br/>';
}
- echo $fieldset_end;
+
+ echo '</fieldset>';
?>
</td>
</tr>
diff --git a/www/crm/wp-admin/network/site-info.php b/www/crm/wp-admin/network/site-info.php
index 6d83fdc5..c8b86e5f 100644
--- a/www/crm/wp-admin/network/site-info.php
+++ b/www/crm/wp-admin/network/site-info.php
@@ -152,7 +152,7 @@ if ( ! empty( $messages ) ) {
<form method="post" action="site-info.php?action=update-site">
<?php wp_nonce_field( 'edit-site' ); ?>
<input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" />
- <table class="form-table">
+ <table class="form-table" role="presentation">
<?php
// The main site of the network should not be updated on this page.
if ( $is_main_site ) :
@@ -166,7 +166,7 @@ if ( ! empty( $messages ) ) {
else :
?>
<tr class="form-field form-required">
- <th scope="row"><?php _e( 'Site Address (URL)' ); ?></th>
+ <th scope="row"><label for="url"><?php _e( 'Site Address (URL)' ); ?></label></th>
<td><input name="blog[url]" type="text" id="url" value="<?php echo $parsed_scheme . '://' . esc_attr( $details->domain ) . esc_attr( $details->path ); ?>" /></td>
</tr>
<?php endif; ?>
diff --git a/www/crm/wp-admin/network/site-new.php b/www/crm/wp-admin/network/site-new.php
index 5dfe03b5..318c7b44 100644
--- a/www/crm/wp-admin/network/site-new.php
+++ b/www/crm/wp-admin/network/site-new.php
@@ -224,7 +224,7 @@ printf(
</p>
<form method="post" action="<?php echo network_admin_url( 'site-new.php?action=add-site' ); ?>" novalidate="novalidate">
<?php wp_nonce_field( 'add-blog', '_wpnonce_add-blog' ); ?>
- <table class="form-table">
+ <table class="form-table" role="presentation">
<tr class="form-field form-required">
<th scope="row"><label for="site-address"><?php _e( 'Site Address (URL)' ); ?> <span class="required">*</span></label></th>
<td>
@@ -281,7 +281,7 @@ printf(
<td><input name="blog[email]" type="email" class="regular-text wp-suggest-user" id="admin-email" data-autocomplete-type="search" data-autocomplete-field="user_email" aria-describedby="site-admin-email" required /></td>
</tr>
<tr class="form-field">
- <td colspan="2"><p id="site-admin-email"><?php _e( 'A new user will be created if the above email address is not in the database.' ); ?><br /><?php _e( 'The username and a link to set the password will be mailed to this email address.' ); ?></p></td>
+ <td colspan="2" class="td-full"><p id="site-admin-email"><?php _e( 'A new user will be created if the above email address is not in the database.' ); ?><br /><?php _e( 'The username and a link to set the password will be mailed to this email address.' ); ?></p></td>
</tr>
</table>
diff --git a/www/crm/wp-admin/network/site-settings.php b/www/crm/wp-admin/network/site-settings.php
index e5a879cf..ab694ec8 100644
--- a/www/crm/wp-admin/network/site-settings.php
+++ b/www/crm/wp-admin/network/site-settings.php
@@ -111,7 +111,7 @@ if ( ! empty( $messages ) ) {
<form method="post" action="site-settings.php?action=update-site">
<?php wp_nonce_field( 'edit-site' ); ?>
<input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" />
- <table class="form-table">
+ <table class="form-table" role="presentation">
<?php
$blog_prefix = $wpdb->get_blog_prefix( $id );
$sql = "SELECT * FROM {$blog_prefix}options
diff --git a/www/crm/wp-admin/network/site-users.php b/www/crm/wp-admin/network/site-users.php
index 5689014f..06dd68c2 100644
--- a/www/crm/wp-admin/network/site-users.php
+++ b/www/crm/wp-admin/network/site-users.php
@@ -300,7 +300,7 @@ if ( current_user_can( 'promote_users' ) && apply_filters( 'show_network_site_us
<h2 id="add-existing-user"><?php _e( 'Add Existing User' ); ?></h2>
<form action="site-users.php?action=adduser" id="adduser" method="post">
<input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" />
- <table class="form-table">
+ <table class="form-table" role="presentation">
<tr>
<th scope="row"><label for="newuser"><?php _e( 'Username' ); ?></label></th>
<td><input type="text" class="regular-text wp-suggest-user" name="newuser" id="newuser" /></td>
@@ -334,7 +334,7 @@ if ( current_user_can( 'create_users' ) && apply_filters( 'show_network_site_use
<h2 id="add-new-user"><?php _e( 'Add New User' ); ?></h2>
<form action="<?php echo network_admin_url( 'site-users.php?action=newuser' ); ?>" id="newuser" method="post">
<input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" />
- <table class="form-table">
+ <table class="form-table" role="presentation">
<tr>
<th scope="row"><label for="user_username"><?php _e( 'Username' ); ?></label></th>
<td><input type="text" class="regular-text" name="user[username]" id="user_username" /></td>
@@ -354,7 +354,7 @@ if ( current_user_can( 'create_users' ) && apply_filters( 'show_network_site_use
</select></td>
</tr>
<tr class="form-field">
- <td colspan="2"><?php _e( 'A password reset link will be sent to the user via email.' ); ?></td>
+ <td colspan="2" class="td-full"><?php _e( 'A password reset link will be sent to the user via email.' ); ?></td>
</tr>
</table>
<?php wp_nonce_field( 'add-user', '_wpnonce_add-new-user' ); ?>
diff --git a/www/crm/wp-admin/network/user-new.php b/www/crm/wp-admin/network/user-new.php
index 202ff90e..73a4021b 100644
--- a/www/crm/wp-admin/network/user-new.php
+++ b/www/crm/wp-admin/network/user-new.php
@@ -120,7 +120,7 @@ if ( isset( $add_user_errors ) && is_wp_error( $add_user_errors ) ) {
</div>
<?php } ?>
<form action="<?php echo network_admin_url( 'user-new.php?action=add-user' ); ?>" id="adduser" method="post" novalidate="novalidate">
- <table class="form-table">
+ <table class="form-table" role="presentation">
<tr class="form-field form-required">
<th scope="row"><label for="username"><?php _e( 'Username' ); ?></label></th>
<td><input type="text" class="regular-text" name="user[username]" id="username" autocapitalize="none" autocorrect="off" maxlength="60" /></td>
@@ -130,7 +130,7 @@ if ( isset( $add_user_errors ) && is_wp_error( $add_user_errors ) ) {
<td><input type="email" class="regular-text" name="user[email]" id="email"/></td>
</tr>
<tr class="form-field">
- <td colspan="2"><?php _e( 'A password reset link will be sent to the user via email.' ); ?></td>
+ <td colspan="2" class="td-full"><?php _e( 'A password reset link will be sent to the user via email.' ); ?></td>
</tr>
</table>
<?php