From dea752ab65489e27c4c0a6d3c470c67ad5065201 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 27 Aug 2019 01:16:20 +0000 Subject: [PATCH] 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 --- src/wp-includes/option.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/option.php b/src/wp-includes/option.php index dcd17956b9..297db96349 100644 --- a/src/wp-includes/option.php +++ b/src/wp-includes/option.php @@ -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(). *