Opened 6 years ago
Closed 6 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 |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.7 |
| Component: | Options, Meta APIs | Version: | 5.5 |
| Severity: | normal | Keywords: | good-first-bug has-patch |
| Cc: | Focuses: |
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)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
The new parameter was introduced in [48505].