[wp-trac] [WordPress Trac] #22805: Add a hook for the live theme preview event

WordPress Trac noreply at wordpress.org
Fri Dec 7 18:22:15 UTC 2012


#22805: Add a hook for the live theme preview event
-------------------------+------------------------------
 Reporter:  alexvorn2    |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Themes       |     Version:  3.4.2
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------------------

Comment (by alexvorn2):

 Replying to [comment:3 nacin]:
 > > To save for example theme settings before the live preview, so theme
 will show exactly as after the activation.
 >
 > A live preview ''shouldn't'' save *anything* to the database. Can you be
 more specific?

 admin panel settings of the theme:
 1. style css file
 2. logo image
 3. show excerpt in the home page - yes/no
 etc..
 so I use after_switch_theme action to save all this stuff, but on live
 preview event settings are not saved because this action is not called.

 I think that after such hook will be available a lot of developers will
 start to develop themes in more professional way, because now I think some
 of them just use update_option function to insert a data for knowing if
 settings were saved or not.

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


More information about the wp-trac mailing list