WordPress.org

Make WordPress Core

Ticket #35772: template.patch

File template.patch, 3.1 KB (added by aidanlane, 5 years ago)
  • template.php

     
    11861186 *
    11871187 * @global $wp_settings_sections Storage array of all settings sections added to admin pages
    11881188 *
    1189  * @param string $id       Slug-name to identify the section. Used in the 'id' attribute of tags.
    1190  * @param string $title    Formatted title of the section. Shown as the heading for the section.
    1191  * @param string $callback Function that echos out any content at the top of the section (between heading and fields).
    1192  * @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();
     1189 * @param string   $id       Slug-name to identify the section. Used in the 'id' attribute of tags.
     1190 * @param string   $title    Formatted title of the section. Shown as the heading for the section.
     1191 * @param callable $callback Function that echos out any content at the top of the section (between heading and fields).
     1192 * @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();
    11931193 */
    11941194function add_settings_section($id, $title, $callback, $page) {
    11951195        global $wp_settings_sections;
     
    12231223 *
    12241224 * @global $wp_settings_fields Storage array of settings fields and info about their pages/sections
    12251225 *
    1226  * @param string $id       Slug-name to identify the field. Used in the 'id' attribute of tags.
    1227  * @param string $title    Formatted title of the field. Shown as the label for the field
    1228  *                         during output.
    1229  * @param string $callback Function that fills the field with the desired form inputs. The
    1230  *                         function should echo its output.
    1231  * @param string $page     The slug-name of the settings page on which to show the section
    1232  *                         (general, reading, writing, ...).
    1233  * @param string $section  Optional. The slug-name of the section of the settings page
    1234  *                         in which to show the box. Default 'default'.
    1235  * @param array  $args {
     1226 * @param string   $id       Slug-name to identify the field. Used in the 'id' attribute of tags.
     1227 * @param string   $title    Formatted title of the field. Shown as the label for the field
     1228 *                           during output.
     1229 * @param callable $callback Function that fills the field with the desired form inputs. The
     1230 *                           function should echo its output.
     1231 * @param string   $page     The slug-name of the settings page on which to show the section
     1232 *                           (general, reading, writing, ...).
     1233 * @param string   $section  Optional. The slug-name of the section of the settings page
     1234 *                           in which to show the box. Default 'default'.
     1235 * @param array    $args {
    12361236 *     Optional. Extra arguments used when outputting the field.
    12371237 *
    12381238 *     @type string $label_for When supplied, the setting title will be wrapped