Changeset 5239
- Timestamp:
- 04/11/2007 03:23:23 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/plugins.php
r5207 r5239 13 13 if (!in_array($plugin, $current)) { 14 14 wp_redirect('plugins.php?error=true'); // we'll override this later if the plugin can be included without fatal error 15 ob_start(); 15 16 @include(ABSPATH . PLUGINDIR . '/' . $plugin); 16 17 $current[] = $plugin; … … 18 19 update_option('active_plugins', $current); 19 20 do_action('activate_' . $plugin); 21 ob_end_clean(); 20 22 } 21 23 wp_redirect('plugins.php?activate=true'); // overrides the ?error=true one above
Note: See TracChangeset
for help on using the changeset viewer.