summaryrefslogtreecommitdiff
path: root/www/crm/wp-admin/network/settings.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/crm/wp-admin/network/settings.php')
-rw-r--r--www/crm/wp-admin/network/settings.php23
1 files changed, 11 insertions, 12 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>