Make WordPress Core

Ticket #28975: 28975_02.diff

File 28975_02.diff, 648 bytes (added by valendesigns, 10 years ago)
  • src/wp-admin/includes/template.php

    diff --git src/wp-admin/includes/template.php src/wp-admin/includes/template.php
    index 56417ba..276a7db 100644
    function do_settings_fields($page, $section) { 
    12871287                return;
    12881288
    12891289        foreach ( (array) $wp_settings_fields[$page][$section] as $field ) {
    1290                 echo '<tr>';
     1290                echo !empty($field['args']['class']) ? '<tr class="' . esc_attr( $field['args']['class'] ) . '">': '<tr>';
    12911291                if ( !empty($field['args']['label_for']) )
    12921292                        echo '<th scope="row"><label for="' . esc_attr( $field['args']['label_for'] ) . '">' . $field['title'] . '</label></th>';
    12931293                else