WordPress.org

Make WordPress Core

Ticket #18801: 18801.2.diff

File 18801.2.diff, 634 bytes (added by sabreuse, 6 years ago)
  • wp-admin/includes/template.php

     
    11501150                if ( !empty($field['args']['label_for']) )
    11511151                        echo '<th scope="row"><label for="' . $field['args']['label_for'] . '">' . $field['title'] . '</label></th>';
    11521152                else
    1153                         echo '<th scope="row">' . $field['title'] . '</th>';
     1153                        echo '<th scope="row"><label for="' . $field['id'] . '">' . $field['title'] . '</th>';
    11541154                echo '<td>';
    11551155                call_user_func($field['callback'], $field['args']);
    11561156                echo '</td>';