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

Props tmatsuur.
Fixes #47938.
Built from https://develop.svn.wordpress.org/trunk@45899


git-svn-id: http://core.svn.wordpress.org/trunk@45710 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2019-08-27 01:17:55 +00:00
parent 8750097e4b
commit 6a7baa24a6
2 changed files with 2 additions and 2 deletions

View File

@ -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().
* *

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.3-alpha-45898'; $wp_version = '5.3-alpha-45899';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.