Make WordPress Core

Ticket #28975: 28975_01.patch

File 28975_01.patch, 566 bytes (added by Jonnyauk, 10 years ago)

do_settings_fields() add class to <tr> (field ID)

  • wp-admin/includes/template.php

     
    12811281                return;
    12821282
    12831283        foreach ( (array) $wp_settings_fields[$page][$section] as $field ) {
    1284                 echo '<tr>';
     1284                echo '<tr class="' . esc_attr( $field['id'] ) . '">';
    12851285                if ( !empty($field['args']['label_for']) )
    12861286                        echo '<th scope="row"><label for="' . esc_attr( $field['args']['label_for'] ) . '">' . $field['title'] . '</label></th>';
    12871287                else