[wp-trac] [WordPress Trac] #20995: [20525] breaks commonly used plugin technique for network activation

WordPress Trac wp-trac at lists.automattic.com
Sun Jun 17 02:57:03 UTC 2012


#20995: [20525] breaks commonly used plugin technique for network activation
--------------------------+--------------------
 Reporter:  iandunn       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.4.1
Component:  Multisite     |     Version:  3.4
 Severity:  normal        |  Resolution:
 Keywords:  close         |
--------------------------+--------------------

Comment (by scribu):

 Example usage:

 {{{
 register_activation_hook( __FILE__, 'my_plugin_activation' );

 function my_plugin_activation( $networkwide ) {
   if ( $networkwide ) {
     // it's a network activation
   } else {
     // it's a normal activation
   }
 }
 }}}

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


More information about the wp-trac mailing list