Ticket #22327: 22327.patch
File 22327.patch, 1.0 KB (added by , 12 years ago) |
---|
-
wp-admin/includes/template.php
1077 1077 1078 1078 foreach ( (array) $wp_settings_sections[$page] as $section ) { 1079 1079 if ( $section['title'] ) 1080 echo "<h3>{$section['title']}</h3>\n";1080 echo '<h3>' . esc_html( $section['title'] ) . "</h3>\n"; 1081 1081 1082 1082 if ( $section['callback'] ) 1083 1083 call_user_func( $section['callback'], $section ); … … 1113 1113 foreach ( (array) $wp_settings_fields[$page][$section] as $field ) { 1114 1114 echo '<tr valign="top">'; 1115 1115 if ( !empty($field['args']['label_for']) ) 1116 echo '<th scope="row"><label for="' . $field['args']['label_for'] . '">' . $field['title']. '</label></th>';1116 echo '<th scope="row"><label for="' . esc_attr( $field['args']['label_for'] ) . '">' . esc_html( $field['title'] ) . '</label></th>'; 1117 1117 else 1118 echo '<th scope="row">' . $field['title']. '</th>';1118 echo '<th scope="row">' . esc_html( $field['title'] ) . '</th>'; 1119 1119 echo '<td>'; 1120 1120 call_user_func($field['callback'], $field['args']); 1121 1121 echo '</td>';