Changeset 2697 for trunk/wp-admin/plugins.php
- Timestamp:
- 07/04/2005 09:53:26 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/plugins.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/plugins.php
r2594 r2697 4 4 if ( isset($_GET['action']) ) { 5 5 check_admin_referer(); 6 6 7 7 if ('activate' == $_GET['action']) { 8 8 $current = get_settings('active_plugins'); 9 9 if (!in_array($_GET['plugin'], $current)) { 10 10 $current[] = trim( $_GET['plugin'] ); 11 sort($current); 12 update_option('active_plugins', $current); 13 include(ABSPATH . 'wp-content/plugins/' . trim( $_GET['plugin'] )); 14 do_action('activate_' . trim( $_GET['plugin'] )); 11 15 } 12 sort($current);13 update_option('active_plugins', $current);14 16 header('Location: plugins.php?activate=true'); 15 } 16 17 if ('deactivate' == $_GET['action']) { 17 } else if ('deactivate' == $_GET['action']) { 18 18 $current = get_settings('active_plugins'); 19 19 array_splice($current, array_search( $_GET['plugin'], $current), 1 ); // Array-fu! 20 20 update_option('active_plugins', $current); 21 do_action('deactivate_' . trim( $_GET['plugin'] )); 21 22 header('Location: plugins.php?deactivate=true'); 22 23 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)