Make WordPress Core


Ignore:
Timestamp:
02/01/2020 09:59:14 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Docs: Correct DocBlock formatting for register_setting().

Document the full list of whitelisted option key names.

See #48303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/deprecated.php

    r47084 r47157  
    161161 *
    162162 * @param string $option_group A settings group name. Should correspond to a whitelisted option key name.
    163  *  Default whitelisted option key names include "general," "discussion," and "reading," among others.
     163 *                             Default whitelisted option key names include 'general', 'discussion', 'media',
     164 *                             'reading', 'writing', 'misc', 'options', and 'privacy'.
    164165 * @param string $option_name The name of an option to sanitize and save.
    165166 * @param callable $sanitize_callback A callback function that sanitizes the option's value.
Note: See TracChangeset for help on using the changeset viewer.