#42796 closed defect (bug) (fixed)
Fix @staticvar in the docblock of wp_rand()
| Reported by: | birgire | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.1 |
| Component: | General | Version: | 4.4 |
| Severity: | normal | Keywords: | good-first-bug has-patch |
| Cc: | Focuses: | docs |
Description
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
Attachments (1)
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Created patch to fix @staticvar