#56806 closed defect (bug) (fixed)
Docs: Incorrect parameter name in `deleted_{$meta_type}meta` action docblock.
Reported by: | costdev | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 6.1 | Priority: | normal |
Severity: | normal | Version: | 4.4 |
Component: | Options, Meta APIs | Keywords: | good-first-bug has-patch commit |
Focuses: | docs | Cc: |
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
@
2 years ago
- Description modified (diff)
- Summary changed from Docs: Incorrect parameter name in `deleted_{$meta_type}meta` filter docblock. to Docs: Incorrect parameter name in `deleted_{$meta_type}meta` action docblock.
This ticket was mentioned in PR #3454 on WordPress/wordpress-develop by divyeshgodhani44.
2 years ago
#2
- Keywords has-patch added; needs-patch removed
@divyeshgodhani commented on PR #3454:
2 years ago
#4
Hi @costdev,
Thank you. I'll Update github username with wp.org.
#5
in reply to:
↑ description
@
2 years ago
- Milestone changed from Future Release to 6.1
#6
@
2 years ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
In 54510:
@SergeyBiryukov commented on PR #3454:
2 years ago
#7
Thanks for the PR! Merged in r54510.
Note: See
TracTickets for help on using
tickets.
Correct Parameter name in docs.
Ticket Ref:- https://core.trac.wordpress.org/ticket/56806