Ticket #16413: 16143-settings-api.diff
File 16143-settings-api.diff, 1.3 KB (added by , 13 years ago) |
---|
-
wp-admin/includes/template.php
1102 1102 call_user_func($section['callback'], $section); 1103 1103 if ( !isset($wp_settings_fields) || !isset($wp_settings_fields[$page]) || !isset($wp_settings_fields[$page][$section['id']]) ) 1104 1104 continue; 1105 echo '< table class="form-table">';1105 echo '<div class="form-fields">'; 1106 1106 do_settings_fields($page, $section['id']); 1107 echo '</ table>';1107 echo '</div>'; 1108 1108 } 1109 1109 } 1110 1110 … … 1129 1129 return; 1130 1130 1131 1131 foreach ( (array) $wp_settings_fields[$page][$section] as $field ) { 1132 echo '< tr valign="top">';1132 echo '<div class="field-row">'; 1133 1133 if ( !empty($field['args']['label_for']) ) 1134 echo '< th scope="row"><label for="' . $field['args']['label_for'] . '">' . $field['title'] . '</label></th>';1134 echo '<div class="field-label"><label for="' . $field['args']['label_for'] . '">' . $field['title'] . '</label></div>'; 1135 1135 else 1136 echo '< th scope="row">' . $field['title'] . '</th>';1137 echo '< td>';1136 echo '<div class="field-label">' . $field['title'] . '</div>'; 1137 echo '<div class="field-input">'; 1138 1138 call_user_func($field['callback'], $field['args']); 1139 echo '</ td>';1140 echo '</ tr>';1139 echo '</div>'; 1140 echo '</div>'; 1141 1141 } 1142 1142 }