[wp-trac] [WordPress Trac] #29820: re (was: Smooth installation and updating of plugins and themes)

WordPress Trac noreply at wordpress.org
Sat Jan 31 13:36:58 UTC 2015


#29820: re
-----------------------------+---------------------------------------------
 Reporter:  markjaquith      |       Owner:
     Type:  task (blessed)   |      Status:  new
 Priority:  high             |   Milestone:  4.2
Component:  Upgrade/Install  |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  ux-feedback      |     Focuses:  ui, javascript, administration
-----------------------------+---------------------------------------------

Comment (by lgladdy):

 attachment:29820.6.diff​ changes from a header parameter to a call back as
 per comment:35

 It also removes the click handlers once a plugin has been installed which
 stops you being able to install a plugin twice.

 The syntax is exactly as @dd32 described inside your plugin file:

 {{{
 $plugin_slug = plugin_basename( __FILE__ );
 add_filter( 'configure_link_' . $plugin_slug,
 'plugin_filter_configurl_function', 10, 1);

 function plugin_filter_configurl_function( $link ) {
   return '/wp-admin/plugins.php';
 }
 }}}

 Given register_activation_hook exists, do you think we should create a
 function called register_configuration_link too to abstract the need to do
 the plugin_basename stuff?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29820#comment:36>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list