Opened 2 years ago
Closed 14 months ago
#17013 closed enhancement (duplicate)
Make $key argument optional in get_*_meta()
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | has-patch commit 2nd-opinion |
| Cc: |
Description
Altough the $key argument is optional in get_metadata(), it's not optional in the wrapper functions for some reason.
This should be fixed.
Attachments (2)
Change History (8)
Take care with renaming @param string $meta_key while not renaming $key in the functions' signatures. Looks like a copy&paste glitch.
$meta_key says more btw, so I wouldn't mind if you even rename the parameter names in the signature.
Note: See
TracTickets for help on using
tickets.

Related: #15483