[wp-trac] [WordPress Trac] #20564: Framework for storing revisions of Post Meta
WordPress Trac
noreply at wordpress.org
Wed Apr 3 06:46:53 UTC 2013
#20564: Framework for storing revisions of Post Meta
-------------------------------------------------+------------------
Reporter: alexkingorg | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.6
Component: Revisions | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing needs-codex |
-------------------------------------------------+------------------
Comment (by azaozz):
Replying to [comment:51 WraithKenny]:
> ...if the key is actually unique, then `get_post_meta( $revision['ID'],
$meta_key )` should only have one value in the array making it unneeded to
pass a unique flag to add_post_meta.
True, but we will need to do `$meta[0]` everywhere. In the current code
post formats meta doesn't support multiple keys, better to use the meta
API properly and get/set a single key.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20564#comment:54>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list