Opened 14 years ago
Closed 13 years ago
#15483 closed enhancement (duplicate)
get_post_custom() should use use get_metadata()
Reported by: | scribu | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | General | Keywords: | has-patch |
Focuses: | Cc: |
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
@
13 years ago
Hmm, get_metadata() contains much more and different lines of code as what you remove with the proposed patch.
#5
@
13 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.
Version 0, edited 13 years ago
by
(next)
#6
@
13 years ago
- Keywords commit removed
- Milestone changed from 3.2 to Future Release
I doubt this got the testing or considerations required here. First patch was marked for commit but it wouldn't have worked when ID = 0. As said in IRC, seems fine but not really a necessary change at this time. Punting.
Note: See
TracTickets for help on using
tickets.
almost equivalent