Opened 3 years ago
Last modified 3 years ago
#59992 new defect (bug)
Document global $locale in wp-admin/options.php
| Reported by: | upadalavipul | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | 2nd-opinion |
| Cc: | Focuses: | docs, coding-standards |
Description
I have review the below file code and found the we are used a global locale variable. but they do not mention in function comment. So I think we need improve function comment code.
File Names: wp-admin/options.php
Attachments (1)
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
The
$localeglobal is on line 347, not inside a named function with its own docblock. 59992.patch adds to the docblock for theallowed_optionsfilter, which does not include the global variable. The comment immediately above line 347 could be good enough.[39122] added the
$localevariable (and the comment).