Index: wp-admin/includes/template.php =================================================================== --- wp-admin/includes/template.php (revision 25081) +++ wp-admin/includes/template.php (working copy) @@ -1058,8 +1058,9 @@ * @param string $title Formatted title of the section. Shown as the heading for the section. * @param string $callback Function that echos out any content at the top of the section (between heading and fields). * @param string $page The slug-name of the settings page on which to show the section. Built-in pages include 'general', 'reading', 'writing', 'discussion', 'media', etc. Create your own using add_options_page(); + * @param array $args Additional arguments */ -function add_settings_section($id, $title, $callback, $page) { +function add_settings_section($id, $title, $callback, $page, $args = array()) { global $wp_settings_sections; if ( 'misc' == $page ) { @@ -1079,7 +1080,7 @@ if ( !isset($wp_settings_sections[$page][$id]) ) $wp_settings_sections[$page][$id] = array(); - $wp_settings_sections[$page][$id] = array('id' => $id, 'title' => $title, 'callback' => $callback); + $wp_settings_sections[$page][$id] = array('id' => $id, 'title' => $title, 'callback' => $callback, 'args' => $args); } /** @@ -1151,7 +1152,7 @@ echo "