[wp-trac] [WordPress Trac] #20299: Preview changes on a published post makes all post meta "live"

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 17 22:13:09 UTC 2012


#20299: Preview changes on a published post makes all post meta "live"
--------------------------+------------------------------
 Reporter:  jakemgold     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.3.1
 Severity:  major         |  Resolution:
 Keywords:                |
--------------------------+------------------------------
Changes (by bookwyrm):

 * cc: bookwyrm (added)


Comment:

 This is being done by the update_post_meta function:
 {{{
 #!php
     // make sure meta is added to the post, not a revision
     if ( $the_post = wp_is_post_revision($post_id) )
         $post_id = $the_post;
 }}}

 Why wouldn't you want the postmeta data saved to the revision?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20299#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list