[wp-trac] [WordPress Trac] #42796: Fix @staticvar in the docblock of wp_rand()
WordPress Trac
noreply at wordpress.org
Mon Dec 4 18:23:38 UTC 2017
#42796: Fix @staticvar in the docblock of wp_rand()
--------------------------+-----------------------------
Reporter: birgire | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.4
Severity: normal | Keywords:
Focuses: docs |
--------------------------+-----------------------------
The inline documentation for the {{{wp_rand()}}} has
{{{
* @staticvar bool $external_rand_source_available
}}}
but there's no such static variable in use. The changeset is [34981].
So it looks like a typo and should be:
{{{
* @staticvar bool $use_random_int_functionality
}}}
Good-first-bug?
Reference:
https://core.trac.wordpress.org/browser/tags/4.9.1/src/wp-
includes/pluggable.php#L2315
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42796>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list