[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 18:40:00 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 jose.sg):
* cc: jose.sg (added)
Comment:
I just had a lovely chat with the people in #wordpress about just this
feature. For reference, see http://wordpress.org/support/topic/unable-to-
update-wordpress-theme?replies=8, but essentially I wanted to be able to
clear the APC cache when a WordPress theme was updated.
The consensus seemed to be that I should not be using the online editor,
which is fine except that:
* It exists, so it must serve a purpose
* I'm not going to try and teach a designer yet another tool (ssh) in
order to let her get work done
Since this ticket appears to have died (other than the resuscitation by
@ericlewis prompted by my wordpress discussion), I created a plugin that
seems to work for my use-case (I seem to have lost my commit rights on the
wp svn a few years ago). https://gist.github.com/a92e511c5f1d299716cc
contains the plugin, for anyone stumbling upon this ticket.
Makes a hook for both theme and plugin file updating, as well as menu
items such that they can be triggered on demand (in case you do edit them
from the command-line). One caveat is that I think themes are loaded
before plugins, and so it looks like calling this hook from a theme's
functions.php file fails. Not sure what the best solution to this is.
It would be nice to have official support for this particular request, but
again, it appears discussion about this ticket has died, so I figured I'd
post my findings for future developers.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16396#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list