Skip to content

Commit f506c0b

Browse files
committed
Improve sniff XML doc following suggestions from code review
1 parent c8bee3d commit f506c0b

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

WordPress/Docs/WP/OptionAutoloadStandard.xml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@
2020
- For `wp_set_option_autoload_values()`, `wp_set_option_autoload()`, and
2121
`wp_set_options_autoload()`: `true` or `false`.
2222
23-
Using 'yes' or 'no' is deprecated since WordPress 6.6.0. Using 'auto', 'auto-on', 'auto-off',
24-
'on', or 'off' in plugin/theme code is strongly discouraged as those values are meant for
25-
internal-use only.
23+
Using 'yes' or 'no' is deprecated since WordPress 6.6.0. Plugin/theme code should also not use
24+
values for the parameter which are for WP core internal use only.
2625
2726
Any other values, including `null` for functions other than `add_option()` and `update_option()`,
2827
are invalid.
@@ -31,10 +30,8 @@
3130
<code_comparison>
3231
<code title="Valid: Using a boolean value or `null`">
3332
<![CDATA[
34-
add_option(
35-
'my_option',
36-
'value',
37-
'',
33+
wp_set_options_autoload(
34+
array('option1', 'option2'),
3835
<em>true</em>
3936
);
4037

0 commit comments

Comments
 (0)