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

Props tmatsuur.
Fixes #47938.

git-svn-id: https://develop.svn.wordpress.org/trunk@45899 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2019-08-27 01:16:20 +00:00
parent 62a87563d7
commit dea752ab65

View File

@ -969,7 +969,7 @@ function get_user_setting( $name, $default = false ) {
/**
* Add or update user interface setting.
*
* Both $name and $value can contain only ASCII letters, numbers and underscores.
* Both $name and $value can contain only ASCII letters, numbers, hyphens, and underscores.
*
* This function has to be used before any output has started as it calls setcookie().
*