WordPress.org

Make WordPress Core

Ticket #13801: template.diff

File template.diff, 1.1 KB (added by frankieroberto, 4 years ago)

Patch to improve documentation of add_settings_section

  • template.php

     
    29722972 * @since 2.7.0 
    29732973 * 
    29742974 * @global $wp_settings_sections Storage array of all settings sections added to admin pages 
    2975  
     2975 * 
    29762976 * @param string $id Slug-name to identify the section. Used in the 'id' attribute of tags. 
    29772977 * @param string $title Formatted title of the section. Shown as the heading for the section. 
    2978  * @param string $callback Function that echo's out content for the section heading. 
    2979  * @param string $page The slug-name of the settings page on which to show the section (general, reading, writing, ...). 
     2978 * @param string $callback Function that echos out any content at the top of the section (between heading and fields). 
     2979 * @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(); 
    29802980 */ 
    29812981function add_settings_section($id, $title, $callback, $page) { 
    29822982        global $wp_settings_sections;