WordPress.org

Make WordPress Core

Ticket #46899: 46899.2.diff

File 46899.2.diff, 20.7 KB (added by greatislander, 5 months ago)

Patch from https://github.com/WordPress/WordPress/pull/404

  • wp-admin/custom-background.php

    diff --git a/wp-admin/custom-background.php b/wp-admin/custom-background.php
    index ce37b5301eb..85d4e9c9849 100644
    a b public function admin_page() { 
    246246
    247247<h3><?php _e( 'Background Image' ); ?></h3>
    248248
    249 <table class="form-table">
     249<table class="form-table" role="presentation">
    250250<tbody>
    251251<tr>
    252252<th scope="row"><?php _e( 'Preview' ); ?></th>
    public function admin_page() { 
    340340
    341341<h3><?php _e( 'Display Options' ); ?></h3>
    342342<form method="post">
    343 <table class="form-table">
     343<table class="form-table" role="presentation">
    344344<tbody>
    345345                <?php if ( get_background_image() ) : ?>
    346346<input name="background-preset" type="hidden" value="custom">
  • wp-admin/custom-header.php

    diff --git a/wp-admin/custom-header.php b/wp-admin/custom-header.php
    index 3ad1d271ab4..00692d35b2e 100644
    a b public function step_1() { 
    490490
    491491<h3><?php _e( 'Header Image' ); ?></h3>
    492492
    493 <table class="form-table">
     493<table class="form-table" role="presentation">
    494494<tbody>
    495495
    496496                <?php if ( get_custom_header() || display_header_text() ) : ?>
    public function step_1() { 
    628628
    629629<form method="post" action="<?php echo esc_url( add_query_arg( 'step', 1 ) ); ?>">
    630630                <?php submit_button( null, 'screen-reader-text', 'save-header-options', false ); ?>
    631 <table class="form-table">
     631<table class="form-table" role="presentation">
    632632<tbody>
    633633                <?php if ( get_uploaded_header_images() ) : ?>
    634634<tr>
    public function step_1() { 
    689689
    690690<h3><?php _e( 'Header Text' ); ?></h3>
    691691
    692 <table class="form-table">
     692<table class="form-table" role="presentation">
    693693<tbody>
    694694<tr>
    695695<th scope="row"><?php _e( 'Header Text' ); ?></th>
  • wp-admin/edit-tag-form.php

    diff --git a/wp-admin/edit-tag-form.php b/wp-admin/edit-tag-form.php
    index 3a496920349..48800eb8bc7 100644
    a b  
    127127        $tag_name_value = esc_attr( $tag->name );
    128128}
    129129?>
    130         <table class="form-table">
     130        <table class="form-table" role="presentation">
    131131                <tr class="form-field form-required term-name-wrap">
    132132                        <th scope="row"><label for="name"><?php _ex( 'Name', 'term name' ); ?></label></th>
    133133                        <td><input name="name" id="name" type="text" value="<?php echo $tag_name_value; ?>" size="40" aria-required="true" />
  • wp-admin/includes/ms.php

    diff --git a/wp-admin/includes/ms.php b/wp-admin/includes/ms.php
    index f8e3fc09e91..07870846b38 100644
    a b function avoid_blog_page_permalink_collision( $data, $postarr ) { 
    802802 */
    803803function choose_primary_blog() {
    804804        ?>
    805         <table class="form-table">
     805        <table class="form-table" role="presentation">
    806806        <tr>
    807807        <?php /* translators: My sites label */ ?>
    808808                <th scope="row"><label for="primary_blog"><?php _e( 'Primary Site' ); ?></label></th>
    function confirm_delete_users( $users ) { 
    914914        $site_admins = get_super_admins();
    915915        $admin_out   = '<option value="' . esc_attr( $current_user->ID ) . '">' . $current_user->user_login . '</option>';
    916916        ?>
    917         <table class="form-table">
     917        <table class="form-table" role="presentation">
    918918        <?php
    919919        foreach ( ( $allusers = (array) $_POST['allusers'] ) as $user_id ) {
    920920                if ( $user_id != '' && $user_id != '0' ) {
  • wp-admin/includes/network.php

    diff --git a/wp-admin/includes/network.php b/wp-admin/includes/network.php
    index ea6ec24bac6..f9ea59c23b4 100644
    a b function network_step1( $errors = false ) { 
    223223                        <strong><?php _e( 'You cannot change this later.' ); ?></strong></p>
    224224                <p><?php _e( 'You will need a wildcard DNS record if you are going to use the virtual host (sub-domain) functionality.' ); ?></p>
    225225                <?php // @todo: Link to an MS readme? ?>
    226                 <table class="form-table">
     226                <table class="form-table" role="presentation">
    227227                        <tr>
    228228                                <th><label><input type="radio" name="subdomain_install" value="1"<?php checked( $subdomain_install ); ?> /> <?php _e( 'Sub-domains' ); ?></label></th>
    229229                                <td>
    function network_step1( $errors = false ) { 
    272272                );
    273273                ?>
    274274                </p>
    275                 <table class="form-table">
     275                <table class="form-table" role="presentation">
    276276                        <tr>
    277277                        <th scope='row'><?php esc_html_e( 'Server Address' ); ?></th>
    278278                        <td>
    function network_step1( $errors = false ) { 
    289289                <?php endif; ?>
    290290
    291291                <h3><?php esc_html_e( 'Network Details' ); ?></h3>
    292                 <table class="form-table">
     292                <table class="form-table" role="presentation">
    293293                <?php if ( 'localhost' == $hostname ) : ?>
    294294                        <tr>
    295295                                <th scope="row"><?php esc_html_e( 'Sub-directory Installation' ); ?></th>
  • wp-admin/includes/template.php

    diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php
    index a06f9228aae..d8c23ccec4c 100644
    a b function do_settings_sections( $page ) { 
    16051605                if ( ! isset( $wp_settings_fields ) || ! isset( $wp_settings_fields[ $page ] ) || ! isset( $wp_settings_fields[ $page ][ $section['id'] ] ) ) {
    16061606                        continue;
    16071607                }
    1608                 echo '<table class="form-table">';
     1608                echo '<table class="form-table" role="presentation">';
    16091609                do_settings_fields( $page, $section['id'] );
    16101610                echo '</table>';
    16111611        }
  • wp-admin/install.php

    diff --git a/wp-admin/install.php b/wp-admin/install.php
    index 4a38eab1cd7..06932309f80 100644
    a b function display_setup_form( $error = null ) { 
    113113<p class="message"><?php echo $error; ?></p>
    114114<?php } ?>
    115115<form id="setup" method="post" action="install.php?step=2" novalidate="novalidate">
    116         <table class="form-table">
     116        <table class="form-table" role="presentation">
    117117                <tr>
    118118                        <th scope="row"><label for="weblog_title"><?php _e( 'Site Title' ); ?></label></th>
    119119                        <td><input name="weblog_title" type="text" id="weblog_title" size="25" value="<?php echo esc_attr( $weblog_title ); ?>" /></td>
  • wp-admin/network/settings.php

    diff --git a/wp-admin/network/settings.php b/wp-admin/network/settings.php
    index eeffa514c38..26586793310 100644
    a b  
    148148        <form method="post" action="settings.php" novalidate="novalidate">
    149149                <?php wp_nonce_field( 'siteoptions' ); ?>
    150150                <h2><?php _e( 'Operational Settings' ); ?></h2>
    151                 <table class="form-table">
     151                <table class="form-table" role="presentation">
    152152                        <tr>
    153153                                <th scope="row"><label for="site_name"><?php _e( 'Network Title' ); ?></label></th>
    154154                                <td>
     
    188188                        </tr>
    189189                </table>
    190190                <h2><?php _e( 'Registration Settings' ); ?></h2>
    191                 <table class="form-table">
     191                <table class="form-table" role="presentation">
    192192                        <tr>
    193193                                <th scope="row"><?php _e( 'Allow new registrations' ); ?></th>
    194194                                <?php
     
    277277
    278278                </table>
    279279                <h2><?php _e( 'New Site Settings' ); ?></h2>
    280                 <table class="form-table">
     280                <table class="form-table" role="presentation">
    281281
    282282                        <tr>
    283283                                <th scope="row"><label for="welcome_email"><?php _e( 'Welcome Email' ); ?></label></th>
     
    358358                        </tr>
    359359                </table>
    360360                <h2><?php _e( 'Upload Settings' ); ?></h2>
    361                 <table class="form-table">
     361                <table class="form-table" role="presentation">
    362362                        <tr>
    363363                                <th scope="row"><?php _e( 'Site upload space' ); ?></th>
    364364                                <td>
     
    402402                if ( ! empty( $languages ) || ! empty( $translations ) ) {
    403403                        ?>
    404404                        <h2><?php _e( 'Language Settings' ); ?></h2>
    405                         <table class="form-table">
     405                        <table class="form-table" role="presentation">
    406406                                <tr>
    407407                                        <th><label for="WPLANG"><?php _e( 'Default Language' ); ?></label></th>
    408408                                        <td>
  • wp-admin/network/site-info.php

    diff --git a/wp-admin/network/site-info.php b/wp-admin/network/site-info.php
    index 6d83fdc5ef0..1d4d5a37c79 100644
    a b  
    152152<form method="post" action="site-info.php?action=update-site">
    153153        <?php wp_nonce_field( 'edit-site' ); ?>
    154154        <input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" />
    155         <table class="form-table">
     155        <table class="form-table" role="presentation">
    156156                <?php
    157157                // The main site of the network should not be updated on this page.
    158158                if ( $is_main_site ) :
  • wp-admin/network/site-new.php

    diff --git a/wp-admin/network/site-new.php b/wp-admin/network/site-new.php
    index 5dfe03b5383..f62f200eaa9 100644
    a b  
    224224</p>
    225225<form method="post" action="<?php echo network_admin_url( 'site-new.php?action=add-site' ); ?>" novalidate="novalidate">
    226226<?php wp_nonce_field( 'add-blog', '_wpnonce_add-blog' ); ?>
    227         <table class="form-table">
     227        <table class="form-table" role="presentation">
    228228                <tr class="form-field form-required">
    229229                        <th scope="row"><label for="site-address"><?php _e( 'Site Address (URL)' ); ?> <span class="required">*</span></label></th>
    230230                        <td>
  • wp-admin/network/site-settings.php

    diff --git a/wp-admin/network/site-settings.php b/wp-admin/network/site-settings.php
    index e5a879cfa49..ab694ec8b80 100644
    a b  
    111111<form method="post" action="site-settings.php?action=update-site">
    112112        <?php wp_nonce_field( 'edit-site' ); ?>
    113113        <input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" />
    114         <table class="form-table">
     114        <table class="form-table" role="presentation">
    115115                <?php
    116116                $blog_prefix = $wpdb->get_blog_prefix( $id );
    117117                $sql         = "SELECT * FROM {$blog_prefix}options
  • wp-admin/network/site-users.php

    diff --git a/wp-admin/network/site-users.php b/wp-admin/network/site-users.php
    index 5689014f2df..c851664c869 100644
    a b  
    300300<h2 id="add-existing-user"><?php _e( 'Add Existing User' ); ?></h2>
    301301<form action="site-users.php?action=adduser" id="adduser" method="post">
    302302        <input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" />
    303         <table class="form-table">
     303        <table class="form-table" role="presentation">
    304304                <tr>
    305305                        <th scope="row"><label for="newuser"><?php _e( 'Username' ); ?></label></th>
    306306                        <td><input type="text" class="regular-text wp-suggest-user" name="newuser" id="newuser" /></td>
     
    334334<h2 id="add-new-user"><?php _e( 'Add New User' ); ?></h2>
    335335<form action="<?php echo network_admin_url( 'site-users.php?action=newuser' ); ?>" id="newuser" method="post">
    336336        <input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" />
    337         <table class="form-table">
     337        <table class="form-table" role="presentation">
    338338                <tr>
    339339                        <th scope="row"><label for="user_username"><?php _e( 'Username' ); ?></label></th>
    340340                        <td><input type="text" class="regular-text" name="user[username]" id="user_username" /></td>
  • wp-admin/network/user-new.php

    diff --git a/wp-admin/network/user-new.php b/wp-admin/network/user-new.php
    index 202ff90ecb5..59c595dc4a2 100644
    a b  
    120120        </div>
    121121<?php } ?>
    122122        <form action="<?php echo network_admin_url( 'user-new.php?action=add-user' ); ?>" id="adduser" method="post" novalidate="novalidate">
    123         <table class="form-table">
     123        <table class="form-table" role="presentation">
    124124                <tr class="form-field form-required">
    125125                        <th scope="row"><label for="username"><?php _e( 'Username' ); ?></label></th>
    126126                        <td><input type="text" class="regular-text" name="user[username]" id="username" autocapitalize="none" autocorrect="off" maxlength="60" /></td>
  • wp-admin/options-discussion.php

    diff --git a/wp-admin/options-discussion.php b/wp-admin/options-discussion.php
    index d79007ed8ab..bfaa0cfbc6d 100644
    a b  
    4141<form method="post" action="options.php">
    4242<?php settings_fields( 'discussion' ); ?>
    4343
    44 <table class="form-table">
     44<table class="form-table" role="presentation">
    4545<tr>
    4646<th scope="row"><?php _e( 'Default article settings' ); ?></th>
    4747<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Default article settings' ); ?></span></legend>
     
    218218}
    219219?>
    220220
    221 <table class="form-table">
     221<table class="form-table" role="presentation">
    222222<tr>
    223223<th scope="row"><?php _e( 'Avatar Display' ); ?></th>
    224224<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Avatar Display' ); ?></span></legend>
  • wp-admin/options-general.php

    diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php
    index f47011aa0b6..62dd4951bf1 100644
    a b  
    5858<form method="post" action="options.php" novalidate="novalidate">
    5959<?php settings_fields( 'general' ); ?>
    6060
    61 <table class="form-table">
     61<table class="form-table" role="presentation">
    6262
    6363<tr>
    6464<th scope="row"><label for="blogname"><?php _e( 'Site Title' ); ?></label></th>
  • wp-admin/options-media.php

    diff --git a/wp-admin/options-media.php b/wp-admin/options-media.php
    index 5d7483c5d89..7373cb5d697 100644
    a b  
    5151<h2 class="title"><?php _e( 'Image sizes' ); ?></h2>
    5252<p><?php _e( 'The sizes listed below determine the maximum dimensions in pixels to use when adding an image to the Media Library.' ); ?></p>
    5353
    54 <table class="form-table">
     54<table class="form-table" role="presentation">
    5555<tr>
    5656<th scope="row"><?php _e( 'Thumbnail size' ); ?></th>
    5757<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Thumbnail size' ); ?></span></legend>
     
    9898if ( isset( $GLOBALS['wp_settings']['media']['embeds'] ) ) :
    9999        ?>
    100100<h2 class="title"><?php _e( 'Embeds' ); ?></h2>
    101 <table class="form-table">
     101<table class="form-table" role="presentation">
    102102        <?php do_settings_fields( 'media', 'embeds' ); ?>
    103103</table>
    104104<?php endif; ?>
    105105
    106106<?php if ( ! is_multisite() ) : ?>
    107107<h2 class="title"><?php _e( 'Uploading Files' ); ?></h2>
    108 <table class="form-table">
     108<table class="form-table" role="presentation">
    109109        <?php
    110110        // If upload_url_path is not the default (empty), and upload_path is not the default ('wp-content/uploads' or empty)
    111111        if ( get_option( 'upload_url_path' ) || ( get_option( 'upload_path' ) != 'wp-content/uploads' && get_option( 'upload_path' ) ) ) :
  • wp-admin/options-permalink.php

    diff --git a/wp-admin/options-permalink.php b/wp-admin/options-permalink.php
    index b17e56692fd..bbe4682a449 100644
    a b class="button button-secondary" 
    300300?>
    301301</p>
    302302
    303 <table class="form-table">
     303<table class="form-table" role="presentation">
    304304        <tr>
    305305                <th><label for="category_base"><?php /* translators: prefix for category permalinks */ _e( 'Category base' ); ?></label></th>
    306306                <td><?php echo $blog_prefix; ?> <input name="category_base" id="category_base" type="text" value="<?php echo esc_attr( $category_base ); ?>" class="regular-text code" /></td>
  • wp-admin/options-reading.php

    diff --git a/wp-admin/options-reading.php b/wp-admin/options-reading.php
    index 636b6d124c3..5921e86ec97 100644
    a b  
    6161
    6262<?php if ( ! get_pages() ) : ?>
    6363<input name="show_on_front" type="hidden" value="posts" />
    64 <table class="form-table">
     64<table class="form-table" role="presentation">
    6565        <?php
    6666        if ( 'posts' != get_option( 'show_on_front' ) ) :
    6767                update_option( 'show_on_front', 'posts' );
     
    7272                update_option( 'show_on_front', 'posts' );
    7373        }
    7474        ?>
    75 <table class="form-table">
     75<table class="form-table" role="presentation">
    7676<tr>
    7777<th scope="row"><?php _e( 'Your homepage displays' ); ?></th>
    7878<td id="front-static-pages"><fieldset><legend class="screen-reader-text"><span><?php _e( 'Your homepage displays' ); ?></span></legend>
  • wp-admin/options-writing.php

    diff --git a/wp-admin/options-writing.php b/wp-admin/options-writing.php
    index ac5bba5ffc7..a5207a32f2b 100644
    a b  
    6262<form method="post" action="options.php">
    6363<?php settings_fields( 'writing' ); ?>
    6464
    65 <table class="form-table">
     65<table class="form-table" role="presentation">
    6666<?php if ( get_site_option( 'initial_db_version' ) < 32453 ) : ?>
    6767<tr>
    6868<th scope="row"><?php _e( 'Formatting' ); ?></th>
     
    150150        ?>
    151151</p>
    152152
    153 <table class="form-table">
     153<table class="form-table" role="presentation">
    154154<tr>
    155155<th scope="row"><label for="mailserver_url"><?php _e( 'Mail Server' ); ?></label></th>
    156156<td><input name="mailserver_url" type="text" id="mailserver_url" value="<?php form_option( 'mailserver_url' ); ?>" class="regular-text code" />
  • wp-admin/options.php

    diff --git a/wp-admin/options.php b/wp-admin/options.php
    index 3bf95c1810b..c07801050c6 100644
    a b  
    320320                <?php wp_nonce_field( 'options-options' ); ?>
    321321                <input type="hidden" name="action" value="update" />
    322322                <input type="hidden" name="option_page" value="options" />
    323                 <table class="form-table">
     323                <table class="form-table" role="presentation">
    324324<?php
    325325$options = $wpdb->get_results( "SELECT * FROM $wpdb->options ORDER BY option_name" );
    326326
  • wp-admin/setup-config.php

    diff --git a/wp-admin/setup-config.php b/wp-admin/setup-config.php
    index 7ea9d0be02c..b81519e8eb3 100644
    a b function setup_config_display_header( $body_classes = array() ) { 
    207207<h1 class="screen-reader-text"><?php _e( 'Set up your database connection' ); ?></h1>
    208208<form method="post" action="setup-config.php?step=2">
    209209        <p><?php _e( 'Below you should enter your database connection details. If you&#8217;re not sure about these, contact your host.' ); ?></p>
    210         <table class="form-table">
     210        <table class="form-table" role="presentation">
    211211                <tr>
    212212                        <th scope="row"><label for="dbname"><?php _e( 'Database Name' ); ?></label></th>
    213213                        <td><input name="dbname" id="dbname" type="text" size="25" value="wordpress"<?php echo $autofocus; ?>/></td>
  • wp-admin/user-edit.php

    diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php
    index f478c3be572..d5413f400c1 100644
    a b  
    255255
    256256<h2><?php _e( 'Personal Options' ); ?></h2>
    257257
    258 <table class="form-table">
     258<table class="form-table" role="presentation">
    259259                <?php if ( ! ( IS_PROFILE_PAGE && ! $user_can_edit ) ) : ?>
    260260        <tr class="user-rich-editing-wrap">
    261261                <th scope="row"><?php _e( 'Visual Editor' ); ?></th>
     
    385385
    386386<h2><?php _e( 'Name' ); ?></h2>
    387387
    388 <table class="form-table">
     388<table class="form-table" role="presentation">
    389389        <tr class="user-user-login-wrap">
    390390                <th><label for="user_login"><?php _e( 'Username' ); ?></label></th>
    391391                <td><input type="text" name="user_login" id="user_login" value="<?php echo esc_attr( $profileuser->user_login ); ?>" disabled="disabled" class="regular-text" /> <span class="description"><?php _e( 'Usernames cannot be changed.' ); ?></span></td>
     
    482482
    483483        <h2><?php _e( 'Contact Info' ); ?></h2>
    484484
    485         <table class="form-table">
     485        <table class="form-table" role="presentation">
    486486        <tr class="user-email-wrap">
    487487                <th><label for="email"><?php _e( 'Email' ); ?> <span class="description"><?php _e( '(required)' ); ?></span></label></th>
    488488                <td><input type="email" name="email" id="email" aria-describedby="email-description" value="<?php echo esc_attr( $profileuser->user_email ); ?>" class="regular-text ltr" />
     
    551551
    552552        <h2><?php IS_PROFILE_PAGE ? _e( 'About Yourself' ) : _e( 'About the user' ); ?></h2>
    553553
    554 <table class="form-table">
     554<table class="form-table" role="presentation">
    555555<tr class="user-description-wrap">
    556556        <th><label for="description"><?php _e( 'Biographical Info' ); ?></label></th>
    557557        <td><textarea name="description" id="description" rows="5" cols="30"><?php echo $profileuser->description; // textarea_escaped ?></textarea>
     
    607607        </table>
    608608
    609609        <h2><?php _e( 'Account Management' ); ?></h2>
    610 <table class="form-table">
     610<table class="form-table" role="presentation">
    611611<tr id="password" class="user-pass1-wrap">
    612612        <th><label for="pass1"><?php _e( 'New Password' ); ?></label></th>
    613613        <td>
     
    728728                ) :
    729729                        ?>
    730730        <h2><?php _e( 'Additional Capabilities' ); ?></h2>
    731 <table class="form-table">
     731<table class="form-table" role="presentation">
    732732<tr class="user-capabilities-wrap">
    733733        <th scope="row"><?php _e( 'Capabilities' ); ?></th>
    734734        <td>
  • wp-admin/user-new.php

    diff --git a/wp-admin/user-new.php b/wp-admin/user-new.php
    index 6f38312c9e1..0d3743805db 100644
    a b  
    393393<input name="action" type="hidden" value="adduser" />
    394394        <?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ); ?>
    395395
    396 <table class="form-table">
     396<table class="form-table" role="presentation">
    397397        <tr class="form-field form-required">
    398398                <th scope="row"><label for="adduser-email"><?php echo $label; ?></label></th>
    399399                <td><input name="email" type="<?php echo $type; ?>" id="adduser-email" class="wp-suggest-user" value="" /></td>
     
    462462        $new_user_ignore_pass       = $creating && isset( $_POST['noconfirmation'] ) ? wp_unslash( $_POST['noconfirmation'] ) : '';
    463463
    464464        ?>
    465 <table class="form-table">
     465<table class="form-table" role="presentation">
    466466        <tr class="form-field form-required">
    467467                <th scope="row"><label for="user_login"><?php _e( 'Username' ); ?> <span class="description"><?php _e( '(required)' ); ?></span></label></th>
    468468                <td><input name="user_login" type="text" id="user_login" value="<?php echo esc_attr( $new_user_login ); ?>" aria-required="true" autocapitalize="none" autocorrect="off" maxlength="60" /></td>