[wp-trac] [WordPress Trac] #11049: Page Preview does not autosave page template

WordPress Trac wp-trac at lists.automattic.com
Sat Mar 26 08:32:22 UTC 2011


#11049: Page Preview does not autosave page template
----------------------------+-----------------------
 Reporter:  janeforshort    |       Owner:  westi
     Type:  defect (bug)    |      Status:  assigned
 Priority:  normal          |   Milestone:  3.2
Component:  Administration  |     Version:  2.8.4
 Severity:  normal          |  Resolution:
 Keywords:  has-patch gci   |
----------------------------+-----------------------

Comment (by nacin):

 Indeed. The patch works only due to a bit of a glitch --
 update_post_meta() on a revision post ID ends up attaching the metadata to
 the post, not the revision. Calling update_metadata() on the revision ID
 itself is fine, we just have to then make sure we check the revision meta
 key using get_metadata().

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


More information about the wp-trac mailing list