[wp-trac] [WordPress Trac] #16396: Add a hook to the theme editor page when the write is successful

WordPress Trac wp-trac at lists.automattic.com
Mon Jun 20 17:01:32 UTC 2011


#16396: Add a hook to the theme editor page when the write is successful
----------------------------------+------------------------------
 Reporter:  scottconnerly         |       Owner:
     Type:  enhancement           |      Status:  new
 Priority:  normal                |   Milestone:  Awaiting Review
Component:  Themes                |     Version:  3.1.3
 Severity:  normal                |  Resolution:
 Keywords:  subversion has-patch  |
----------------------------------+------------------------------
Changes (by ericlewis):

 * cc: ericlewis (added)
 * version:  3.0.4 => 3.1.3


Comment:

 This is definitely out of the scope of all hooks currently. In theme-
 editor.php, from lines 82-100 the new contents of the file are written, a
 redirect location is set, and then exit(). Inserting this line at 96 would
 work well:


 {{{
 do_action('theme_file_updated', $file, $theme );
 }}}

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


More information about the wp-trac mailing list