Opened 5 months ago
Closed 5 months ago
#63879 closed defect (bug) (fixed)
Correct DocBlock tag order for @since and @global in WordPress core
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 6.9 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | General | Keywords: | has-patch |
| Focuses: | coding-standards | Cc: |
Description
Hello,
While reviewing WordPress core files, I noticed that in some DocBlocks the @since and @global tags are not in the correct order according to the documentation standards.
To maintain consistency with the WordPress documentation guidelines, the order of these tags should be corrected.
Here, I mentioned list of those files:
/wp-includes/option.php
/wp-includes/ms-settings.php
/wp-admin/includes/template.php
I have checked core tickets and found the one ticket where all the docblock changes are define.
Thanks,
Attachments (3)
Change History (7)
#1
@
5 months ago
There is one more instance in src/wp-admin/nav-menus.php wp_nav_menu_max_depth function since should add before global
#2
@
5 months ago
- Keywords has-patch added; dev-feedback 2nd-opinion removed
@shailu25 I have updated patch as per you suggestion.
Note: See
TracTickets for help on using
tickets.
I have checked above mentioned issue and resolved it. Here, I have added my patch.