Changeset 31560
- Timestamp:
- 02/26/2015 07:58:50 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/template.php
r31551 r31560 1290 1290 1291 1291 foreach ( (array) $wp_settings_fields[$page][$section] as $field ) { 1292 echo '<tr>'; 1293 if ( !empty($field['args']['label_for']) ) 1292 $class = ''; 1293 1294 if ( ! empty( $field['args']['class'] ) ) { 1295 $class = ' class="' . esc_attr( $field['args']['class'] ) . '"'; 1296 } 1297 1298 echo "<tr{$class}>"; 1299 1300 if ( ! empty( $field['args']['label_for'] ) ) { 1294 1301 echo '<th scope="row"><label for="' . esc_attr( $field['args']['label_for'] ) . '">' . $field['title'] . '</label></th>'; 1295 else1302 } else { 1296 1303 echo '<th scope="row">' . $field['title'] . '</th>'; 1304 } 1305 1297 1306 echo '<td>'; 1298 1307 call_user_func($field['callback'], $field['args']);
Note: See TracChangeset
for help on using the changeset viewer.