mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-13 05:10:18 +00:00
Provide proper label associations and descriptions throughout the network admin
* Add labels previously missing for many inputs throughout the network admin screen. * Add proper `aria-describedby` attributes to provide better descriptions. * Wrap grouped inputs with `fieldset` elements. * Remove now unneeded `title` attributes when appropriate. Props cfoellmann, afercia, rianrietveld. Fixes #38406. git-svn-id: https://develop.svn.wordpress.org/trunk@31517 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -138,14 +138,14 @@ if ( ! empty( $messages ) ) {
|
||||
if ( strpos( $option->option_value, "\n" ) !== false ) {
|
||||
?>
|
||||
<tr class="form-field">
|
||||
<th scope="row"><?php echo ucwords( str_replace( "_", " ", $option->option_name ) ) ?></th>
|
||||
<th scope="row"><label for="<?php echo esc_attr( $option->option_name ) ?>"><?php echo ucwords( str_replace( "_", " ", $option->option_name ) ) ?></label></th>
|
||||
<td><textarea class="<?php echo $class; ?>" rows="5" cols="40" name="option[<?php echo esc_attr( $option->option_name ) ?>]" id="<?php echo esc_attr( $option->option_name ) ?>"<?php disabled( $disabled ) ?>><?php echo esc_textarea( $option->option_value ) ?></textarea></td>
|
||||
</tr>
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
<tr class="form-field">
|
||||
<th scope="row"><?php echo esc_html( ucwords( str_replace( "_", " ", $option->option_name ) ) ); ?></th>
|
||||
<th scope="row"><label for="<?php echo esc_attr( $option->option_name ) ?>"><?php echo esc_html( ucwords( str_replace( "_", " ", $option->option_name ) ) ); ?></label></th>
|
||||
<?php if ( $is_main_site && in_array( $option->option_name, array( 'siteurl', 'home' ) ) ) { ?>
|
||||
<td><code><?php echo esc_html( $option->option_value ) ?></code></td>
|
||||
<?php } else { ?>
|
||||
|
||||
Reference in New Issue
Block a user