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

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 14 05:12:38 UTC 2011

#11049: Page Preview does not autosave page template
 Reporter:  janeforshort             |       Owner:  nacin
     Type:  defect (bug)             |      Status:  accepted
 Priority:  normal                   |   Milestone:  Future Release
Component:  Administration           |     Version:  2.8.4
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch gci 3.3-early  |

Comment (by johnbillion):

 Replying to [comment:16 westi]:
 > Replying to [comment:15 jane]:
 > > In new version, please save all meta before preview so all info is
 correct and up-to-date.
 > In an ideal world this is the solution.
 > I wonder if this could get tricky though and will fill the db with a lot
 of duplicate data.
 This route will of course make the post meta table explode in size. I
 wonder whether we could serialize all the meta data for each post revision
 and store it in one meta field.

 The latest revision for each post could have its meta data copied over (so
 it can be used to display the correct post template in previews, etc) and
 every time a new revision is created we serialize the meta data in the
 previous revision and store it all in one meta field. This eliminates all
 the additional rows we'd otherwise see in the post meta table, and it also
 potentially allows us to revert a post's meta data along with everything
 else when a post is reverted to a previous revision.


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

More information about the wp-trac mailing list