[wp-hackers] Post meta revisions

Kevin Newman CaptainN at unFocus.com
Fri Dec 10 18:23:48 UTC 2010


I'm about to tackle a problem which will rely on this as a dependency - 
have you completed this work, and would you be willing to share? I'd 
hate to have to duplicate all that work (but I will, and am already 
starting).

Kevin N.


On 11/30/10 3:16 AM, Andrew Nacin wrote:
> On Tue, Nov 30, 2010 at 3:03 AM, John Blackbourn
> <johnbillion+wp at gmail.com<johnbillion%2Bwp at gmail.com>
>> wrote:
>> On Mon, Nov 29, 2010 at 8:00 PM, Andrew Nacin<wp at andrewnacin.com>  wrote:
>>> Metadata cannot be stored for revisions, but we only enforce that on the
>>> *_post_meta() level. You can still use the *_metadata() functions to add
>>> metadata to revisions.
>> Thanks. Before I go digging, if there's post meta data for a
>> particular revision ID would this meta data be automatically restored
>> along with the post data if and when that revision is restored? If not
>> I'll see what hooks we've got in place so my plugin can handle this
>> itself.
>
> No, but there's a wp_restore_post_revision hook in the function of the same
> name.
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers



More information about the wp-hackers mailing list