WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 2 days ago

#16401 closed enhancement (duplicate)

Add hook to delete_theme() on successful delete

Reported by: scottconnerly Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0.4
Component: Themes Keywords:
Focuses: Cc:

Description (last modified by obenland)

Add an action or filter to the end of /wp-admin/includes/theme.php delete_theme()'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 or folder (particularly in the wp-content folder) I need to be able to trigger an svn commit.

See also Ticket #16396.

Attachments (1)

ticket.16401.diff (410 bytes) - added by ptahdunbar 5 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 @scottconnerly5 years ago

  • Cc scottconnerly added
  • Keywords subversion added

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

Replying to scottconnerly:

Add an action or filter to the end of /wp-admin/includes/theme.php delete_theme()'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 or folder (particularly in the wp-content folder) I need to be able to trigger an svn commit.

See also Ticket # 16396

+1

@ptahdunbar5 years ago

comment:3 @ptahdunbar5 years ago

  • Cc trac@… added
  • Keywords has-patch added

ticket.16401.diff adds a new action 'deleted_theme' passing the $template variable as the first parameter.

comment:4 @obenland2 years ago

  • Keywords close added; subversion removed

Can we close this in favor of #14955?

You could check the proposed action in the patched attached there. Also, playing with the 'delete_site_transient' action might solve your problem too.

comment:5 @obenland2 years ago

  • Description modified (diff)

comment:7 @chriscct72 days ago

  • Keywords has-patch close removed
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #14955.

Note: See TracTickets for help on using tickets.