Opened 4 years ago
Closed 4 years ago
#51866 closed defect (bug) (fixed)
metadata_exists does not pass the meta_type to the get_{$meta_type}_metadata filter
Reported by: | jsmoriss | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.7 | Priority: | normal |
Severity: | normal | Version: | 5.5 |
Component: | Options, Meta APIs | Keywords: | good-first-bug has-patch |
Focuses: | Cc: |
Description
There's a 5th argument missing in this second "get_{$meta_type}_metadata" filter call:
$ grep -n '"get_{$meta_type}_metadata"' wordpress/wp-includes/meta.php 564: $check = apply_filters( "get_{$meta_type}_metadata", null, $object_id, $meta_key, $single, $meta_type ); 676: $check = apply_filters( "get_{$meta_type}_metadata", null, $object_id, $meta_key, true );
Attachments (1)
Change History (6)
#1
@
4 years ago
- Component changed from General to Options, Meta APIs
- Version changed from 5.5.3 to 5.5
Note: See
TracTickets for help on using
tickets.
The new parameter was introduced in [48505].