[wp-trac] [WordPress Trac] #22378: Add ability to hijack plugin install/upgrade downloads

WordPress Trac noreply at wordpress.org
Wed Nov 7 13:26:21 UTC 2012


#22378: Add ability to hijack plugin install/upgrade downloads
-----------------------------+--------------------
 Reporter:  rmccue           |       Owner:
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:  3.5
Component:  Upgrade/Install  |     Version:  trunk
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |
-----------------------------+--------------------

Comment (by scribu):

 We should try to keep some consistency between hook names.

 First, there's general upgrader hooks:

 {{{
 'upgrader_pre_install'
 'upgrader_post_install'
 'upgrader_source_selection'
 'upgrader_clear_destination'
 }}}

 And then there's plugin hooks:

 {{{
 'install_plugin_complete_actions'
 'update_plugin_complete_actions'
 'update_bulk_plugins_complete_actions'
 }}}

 And theme hooks:

 {{{
 'install_theme_complete_actions'
 'update_theme_complete_actions'
 'update_bulk_theme_complete_actions'
 }}}

 So, a better hook name would be 'upgrader_pre_download'.

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


More information about the wp-trac mailing list