#42796 closed defect (bug) (fixed)
Fix @staticvar in the docblock of wp_rand()
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 5.1 | Priority: | normal |
| Severity: | normal | Version: | 4.4 |
| Component: | General | Keywords: | good-first-bug has-patch |
| Focuses: | docs | Cc: |
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)
#1
@
8 years ago
- Keywords needs-patch good-first-bug added
- Milestone changed from Awaiting Review to 5.0
#2
@
8 years ago
- Keywords has-patch added; needs-patch removed
@chetan200891 thanks for the patch, it looks good to me
Note: See
TracTickets for help on using
tickets.
Created patch to fix @staticvar