#56806 closed defect (bug) (fixed)
Docs: Incorrect parameter name in `deleted_{$meta_type}meta` action docblock.
| Reported by: | costdev | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.1 |
| Component: | Options, Meta APIs | Version: | 4.4 |
| Severity: | normal | Keywords: | good-first-bug has-patch commit |
| Cc: | Focuses: | docs |
Description (last modified by )
A good first bug for new contributors to get comfortable with contributing to Core.
In src/wp-includes/meta.php, at around line 1081, the deleted_{$meta_type}meta action's docblock shows:
* @param int $meta_ids Deleted metadata entry ID.
However, the parameter is actually called $meta_id:
do_action( "deleted_{$meta_type}meta", $meta_id );
The parameter name should be changed from $meta_ids to $meta_id in the docblock.
Introduced in [35718].
Change History (7)
#1
@
4 years ago
- Description modified (diff)
- Summary Docs: Incorrect parameter name in `deleted_{$meta_type}meta` filter docblock. → Docs: Incorrect parameter name in `deleted_{$meta_type}meta` action docblock.
This ticket was mentioned in PR #3454 on WordPress/wordpress-develop by divyeshgodhani44.
4 years ago
#2
- Keywords has-patch added; needs-patch removed
@divyeshgodhani commented on PR #3454:
4 years ago
#4
Hi @costdev,
Thank you. I'll Update github username with wp.org.
#5
in reply to: ↑ description
@
4 years ago
- Milestone Future Release → 6.1
@SergeyBiryukov commented on PR #3454:
4 years ago
#7
Thanks for the PR! Merged in r54510.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Correct Parameter name in docs.
Ticket Ref:- https://core.trac.wordpress.org/ticket/56806