Make WordPress Core


Ignore:
Timestamp:
08/27/2019 01:16:20 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Docs: Clarify that $name and $value parameters of set_user_setting() can contain hyphens.

Props tmatsuur.
Fixes #47938.

File:
1 edited

Legend:

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

    r45590 r45899  
    970970 * Add or update user interface setting.
    971971 *
    972  * Both $name and $value can contain only ASCII letters, numbers and underscores.
     972 * Both $name and $value can contain only ASCII letters, numbers, hyphens, and underscores.
    973973 *
    974974 * This function has to be used before any output has started as it calls setcookie().
Note: See TracChangeset for help on using the changeset viewer.