WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 20 months ago

#16399 new enhancement

Add a hook to the plugin editor page when the write is successful

Reported by: scottconnerly Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.0.4
Component: Plugins Keywords: has-patch
Focuses: Cc:

Description (last modified by SergeyBiryukov)

Add an action or filter to the end of plugin-editor.php's processing when the write is successful.

The use case is for managing a Wordpress install on an SVN-controlled server. Whenever the CMS changes a file's contents (particularly in the wp-content folder) I need to be able to trigger an svn commit.

See also: Ticket #16396

Attachments (1)

ticket.16399.diff (485 bytes) - added by ptahdunbar 4 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 @scottconnerly4 years ago

  • Cc scottconnerly added
  • Keywords subversion added

comment:2 in reply to: ↑ description @mikeschinkel4 years ago

  • Cc mikeschinkel@… added

Replying to scottconnerly:

Add an action or filter to the end of plugin-editor.php's processing when the write is successful.

The use case is for managing a Wordpress install on an SVN-controlled server. Whenever the CMS changes a file's contents (particularly in the wp-content folder) I need to be able to trigger an svn commit.

See also: Ticket # 16396

+1

@ptahdunbar4 years ago

comment:3 @ptahdunbar4 years ago

  • Cc trac@… added
  • Keywords has-patch added
  • Summary changed from Add plugin-editor.php action/filter on successful save to Add a hook to the plugin editor page when the write is successful

ticket.16399.diff adds a new 'edited_plugin' action hook, passing the plugins main file, the file edited, and the new content of that file as parameters.

comment:4 @SergeyBiryukov20 months ago

  • Description modified (diff)
  • Keywords subversion removed

Related: #16396, #16398, #16400, #16401

Note: See TracTickets for help on using tickets.