[wp-trac] [WordPress Trac] #12922: Setting featured image does not require the post to be saved

WordPress Trac noreply at wordpress.org
Thu Jul 14 16:58:40 UTC 2016


#12922: Setting featured image does not require the post to be saved
-----------------------------+-----------------------
 Reporter:  rooodini         |       Owner:  flixos90
     Type:  defect (bug)     |      Status:  accepted
 Priority:  normal           |   Milestone:  4.6
Component:  Post Thumbnails  |     Version:  3.0
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+-----------------------

Comment (by Kelderic):

 I noticed this when I was creating the Featured Galleries plugin, which
 behaves very similar to Featured Images. I solved it by storing two
 separate DB entries. A temp and a perm. The temp is updating via AJAX, and
 it is substituted into pages if the page is currently a preview. The perm
 value is updating when the page is saved. Finally whenever the page is
 opened, the temp is overwritten by the perm.

 I'm not sure if this would have a huge impact on DB size, but it does
 solve all problems with previewing.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/12922#comment:30>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list