diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php
index 17ba5b0..7afcffe 100644
|
a
|
b
|
function add_settings_section($id, $title, $callback, $page) {
|
| 1098 | 1098 | if ( !isset($wp_settings_sections[$page][$id]) ) |
| 1099 | 1099 | $wp_settings_sections[$page][$id] = array(); |
| 1100 | 1100 | |
| 1101 | | $wp_settings_sections[$page][$id] = array('id' => $id, 'title' => $title, 'callback' => $callback); |
| | 1101 | $wp_settings_sections[$page][$id] = compact( 'id', 'title', 'callback' ); |
| 1102 | 1102 | } |
| 1103 | 1103 | |
| 1104 | 1104 | /** |
| … |
… |
function add_settings_field($id, $title, $callback, $page, $section = 'default',
|
| 1138 | 1138 | if ( !isset($wp_settings_fields[$page][$section]) ) |
| 1139 | 1139 | $wp_settings_fields[$page][$section] = array(); |
| 1140 | 1140 | |
| 1141 | | $wp_settings_fields[$page][$section][$id] = array('id' => $id, 'title' => $title, 'callback' => $callback, 'args' => $args); |
| | 1141 | $wp_settings_fields[$page][$section][$id] = compact( 'id', 'title', 'callback', 'args' ); |
| 1142 | 1142 | } |
| 1143 | 1143 | |
| 1144 | 1144 | /** |
| … |
… |
function do_settings_fields($page, $section) {
|
| 1199 | 1199 | else |
| 1200 | 1200 | echo '<th scope="row">' . $field['title'] . '</th>'; |
| 1201 | 1201 | echo '<td>'; |
| 1202 | | call_user_func($field['callback'], $field['args']); |
| | 1202 | call_user_func($field['callback'], $field['args'], $field['id'], $section, $page); |
| 1203 | 1203 | echo '</td>'; |
| 1204 | 1204 | echo '</tr>'; |
| 1205 | 1205 | } |