Opened 7 years ago
Closed 6 years ago
#45849 closed defect (bug) (fixed)
Missing @return statement in function
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 5.5 | Priority: | normal |
| Severity: | normal | Version: | 5.0.2 |
| Component: | Plugins | Keywords: | needs-patch |
| Focuses: | docs, coding-standards | Cc: |
Description
Are we already tracking the following or fixed already?
If not, get_admin_page_parent function in wp-admin/includes/plugin.php has no return type specified in its Doc block.
Also, it does not have a signature for $parent argument in Doc block as well.
I think the Doc block may be rewritten in the following manner:
/**
*
* @global string $parent_file
* @global array $menu
* @global array $submenu
* @global string $pagenow
* @global string $typenow
* @global string $plugin_page
* @global array $_wp_real_parent_file
* @global array $_wp_menu_nopriv
* @global array $_wp_submenu_nopriv
*
* $parent string. Name of admin page parent. Default is empty when current page has no parent.
* @return string.
*/
function get_admin_page_parent( $parent = '' ) {
...
}
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
@returntag was added in [45085], though it would also benefit from a description.@paramtag is still missing.