WordPress.org

Make WordPress Core

Ticket #1052: diff.txt

File diff.txt, 788 bytes (added by jcumberland, 15 years ago)
Line 
1--- old_plugins.php     Mon Mar  7 22:37:10 2005
2+++ plugins.php Mon Mar  7 22:19:23 2005
3@@ -11,6 +11,7 @@ if ( isset($_GET['action']) ) {
4                }
5                sort($current);
6                update_option('active_plugins', $current);
7+               do_action('plugin_activate', '');
8                header('Location: plugins.php?activate=true');
9        }
10
11@@ -18,6 +19,7 @@ if ( isset($_GET['action']) ) {
12                $current = get_settings('active_plugins');
13                array_splice($current, array_search( $_GET['plugin'], $current), 1 ); // Array-fu!
14                update_option('active_plugins', $current);
15+               do_action('plugin_deactivate', '');
16                header('Location: plugins.php?deactivate=true');
17        }
18 }