Ticket #25229: wp-admin-includes-plugin.3.diff
File wp-admin-includes-plugin.3.diff, 2.6 KB (added by , 11 years ago) |
---|
-
src/wp-admin/includes/plugin.php
541 541 542 542 if ( ! $silent ) { 543 543 /** 544 * Fires before a plugin is activated in activate_plugin() when the $silent parameter is false 544 * Fires before a plugin is activated in activate_plugin() when the $silent parameter is false. 545 545 * 546 546 * @since 2.9.0 547 547 * 548 * @param string $plugin Basename of the plugin path from {@see activate_plugin()}. 549 * @param bool $network_wide Argument from {@see activate_plugin()}. 548 * @param string $plugin Plugin path to main plugin file with plugin data. 549 * @param bool $network_wide Whether to enable the plugin for all sites in the network 550 * or just the current site. Multisite only. Default is false. 550 551 */ 551 552 do_action( 'activate_plugin', $plugin, $network_wide ); 552 553 553 554 /** 554 * Fires before a plugin is activated in activate_plugin() when the $silent parameter is false 555 * Fires before a plugin is activated in activate_plugin() when the $silent parameter is false. 555 556 * 556 557 * The action concatenates the 'activate_' prefix with the $plugin value passed to 557 * activate_plugin() to create a dynamically 558 * activate_plugin() to create a dynamically-named action. 558 559 * 559 560 * @since 2.0.0 560 561 * 561 * @param bool $network_wide Argument from {@see activate_plugin()}. 562 * @param bool $network_wide Whether to enable the plugin for all sites in the network 563 * or just the current site. Multisite only. Default is false. 562 564 */ 563 565 do_action( 'activate_' . $plugin, $network_wide ); 564 566 } … … 574 576 575 577 if ( ! $silent ) { 576 578 /** 577 * Fires after a plugin has been activated in activate_plugin() when the $silent parameter is false 579 * Fires after a plugin has been activated in activate_plugin() when the $silent parameter is false. 578 580 * 579 581 * @since 2.9.0 580 582 * 581 * @param string $plugin Basename of the plugin path from {@see activate_plugin()}. 582 * @param bool $network_wide Argument from {@see activate_plugin()}. 583 * @param string $plugin Plugin path to main plugin file with plugin data. 584 * @param bool $network_wide Whether to enable the plugin for all sites in the network 585 * or just the current site. Multisite only. Default is false. 583 586 */ 584 587 do_action( 'activated_plugin', $plugin, $network_wide ); 585 588 }