Changeset 4144 for trunk/wp-admin/plugins.php
- Timestamp:
- 08/30/2006 09:46:31 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/plugins.php
r3928 r4144 5 5 if ('activate' == $_GET['action']) { 6 6 check_admin_referer('activate-plugin_' . $_GET['plugin']); 7 $current = get_ settings('active_plugins');7 $current = get_option('active_plugins'); 8 8 if (!in_array($_GET['plugin'], $current)) { 9 9 $current[] = trim( $_GET['plugin'] ); … … 16 16 } else if ('deactivate' == $_GET['action']) { 17 17 check_admin_referer('deactivate-plugin_' . $_GET['plugin']); 18 $current = get_ settings('active_plugins');18 $current = get_option('active_plugins'); 19 19 array_splice($current, array_search( $_GET['plugin'], $current), 1 ); // Array-fu! 20 20 update_option('active_plugins', $current); … … 31 31 // If any plugins don't exist, axe 'em 32 32 33 $check_plugins = get_ settings('active_plugins');33 $check_plugins = get_option('active_plugins'); 34 34 35 35 // Sanity check. If the active plugin list is not an array, make it an … … 44 44 foreach ($check_plugins as $check_plugin) { 45 45 if (!file_exists(ABSPATH . 'wp-content/plugins/' . $check_plugin)) { 46 $current = get_ settings('active_plugins');46 $current = get_option('active_plugins'); 47 47 $key = array_search($check_plugin, $current); 48 48 if ( false !== $key && NULL !== $key ) { … … 68 68 <?php 69 69 70 if ( get_ settings('active_plugins') )71 $current_plugins = get_ settings('active_plugins');70 if ( get_option('active_plugins') ) 71 $current_plugins = get_option('active_plugins'); 72 72 73 73 $plugins = get_plugins();
Note: See TracChangeset
for help on using the changeset viewer.