WordPress.org

Make WordPress Core

Opened 14 months ago

Closed 14 months ago

Last modified 14 months ago

#48172 closed enhancement (invalid)

Global WP Documented as $wp_locale; Actual Global Used is $wp

Reported by: dhurlburtusa Owned by:
Milestone: Priority: normal
Severity: trivial Version:
Component: General Keywords:
Focuses: docs Cc:

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)

#1 @dhurlburtusa
14 months ago

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/.

#2 @johnbillion
14 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to 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.

#3 @dhurlburtusa
14 months ago

@johnbillion Thanks John. I just found out myself. I see that Sergey fixed it 2 months ago. Well at least now I have my laptop all set up to do some other contributions.

Last edited 14 months ago by dhurlburtusa (previous) (diff)
Note: See TracTickets for help on using tickets.