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:
parent
62a87563d7
commit
dea752ab65
@ -969,7 +969,7 @@ function get_user_setting( $name, $default = false ) {
|
|||||||
/**
|
/**
|
||||||
* Add or update user interface setting.
|
* 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().
|
* This function has to be used before any output has started as it calls setcookie().
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user