Opened 16 years ago
Closed 15 years ago
#15483 closed enhancement (duplicate)
get_post_custom() should use use get_metadata()
| Reported by: | scribu | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
I found out that get_post_custom() is equivalent to calling get_metadata() without a meta key, so we should use that.
Attachments (2)
Change History (9)
#4
@
15 years ago
Hmm, get_metadata() contains much more and different lines of code as what you remove with the proposed patch.
#5
@
15 years ago
You've got it backwards: I'm replacing get_post_meta() with get_metadata(), not the other way around.
Of course get_metadata() contains much more code, since it's a more general function.
Please base your objections on tests, not on appearances.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
almost equivalent