Ticket #17851: 17851.2.diff
| File 17851.2.diff, 1.2 KB (added by , 14 years ago) |
|---|
-
wp-admin/includes/template.php
1163 1163 return; 1164 1164 1165 1165 foreach ( (array) $wp_settings_sections[$page] as $section ) { 1166 echo '<div id="section-' . sanitize_html_class( $section['id'] ) . '" class="settings-section">'; 1166 1167 echo "<h3>{$section['title']}</h3>\n"; 1167 1168 call_user_func($section['callback'], $section); 1168 1169 if ( !isset($wp_settings_fields) || !isset($wp_settings_fields[$page]) || !isset($wp_settings_fields[$page][$section['id']]) ) … … 1170 1171 echo '<table class="form-table">'; 1171 1172 do_settings_fields($page, $section['id']); 1172 1173 echo '</table>'; 1174 echo '</div>'; 1173 1175 } 1174 1176 } 1175 1177 … … 1194 1196 return; 1195 1197 1196 1198 foreach ( (array) $wp_settings_fields[$page][$section] as $field ) { 1197 echo '<tr valign="top">';1199 echo '<tr id="setting-' . sanitize_html_class( $field['id'] ) . '" class="settings-field" valign="top">'; 1198 1200 if ( !empty($field['args']['label_for']) ) 1199 1201 echo '<th scope="row"><label for="' . $field['args']['label_for'] . '">' . $field['title'] . '</label></th>'; 1200 1202 else