#48172 closed enhancement (invalid)
Global WP Documented as $wp_locale; Actual Global Used is $wp
| Reported by: | dhurlburtusa | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | |
| Severity: | trivial | Keywords: | |
| Cc: | Focuses: | docs |
Description
The documentation for the wp function is incorrect. The function uses the $wp global but not the $wp_locale global. The documentation, i.e., the doc comments, says $wp_locale instead of $wp.
Change History (3)
#2
@
7 years ago
- Milestone Awaiting Review
- Resolution → invalid
- Status new → closed
Thanks for the report @dhurlburtusa! Welcome to WordPress Trac.
The problem you reported has already been fixed in the development version of WordPress in changeset [45736]. It'll be released in the next version of WordPress.
Note:
See TracTickets
for help on using tickets.
I'll create a patch for this. The fix is extremely trivial. I just need to set up my environment. I am currently reading through the Core Contributor Handbook https://make.wordpress.org/core/handbook/.