Make WordPress Core


Ignore:
Timestamp:
08/30/2006 09:46:31 PM (18 years ago)
Author:
ryan
Message:

Use get_option instead of get_settings. Just 'cause.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/plugins.php

    r3928 r4144  
    55    if ('activate' == $_GET['action']) {
    66        check_admin_referer('activate-plugin_' . $_GET['plugin']);
    7         $current = get_settings('active_plugins');
     7        $current = get_option('active_plugins');
    88        if (!in_array($_GET['plugin'], $current)) {
    99            $current[] = trim( $_GET['plugin'] );
     
    1616    } else if ('deactivate' == $_GET['action']) {
    1717        check_admin_referer('deactivate-plugin_' . $_GET['plugin']);
    18         $current = get_settings('active_plugins');
     18        $current = get_option('active_plugins');
    1919        array_splice($current, array_search( $_GET['plugin'], $current), 1 ); // Array-fu!
    2020        update_option('active_plugins', $current);
     
    3131// If any plugins don't exist, axe 'em
    3232
    33 $check_plugins = get_settings('active_plugins');
     33$check_plugins = get_option('active_plugins');
    3434
    3535// Sanity check.  If the active plugin list is not an array, make it an
     
    4444foreach ($check_plugins as $check_plugin) {
    4545    if (!file_exists(ABSPATH . 'wp-content/plugins/' . $check_plugin)) {
    46             $current = get_settings('active_plugins');
     46            $current = get_option('active_plugins');
    4747            $key = array_search($check_plugin, $current);
    4848            if ( false !== $key && NULL !== $key ) {
     
    6868<?php
    6969
    70 if ( get_settings('active_plugins') )
    71     $current_plugins = get_settings('active_plugins');
     70if ( get_option('active_plugins') )
     71    $current_plugins = get_option('active_plugins');
    7272
    7373$plugins = get_plugins();
Note: See TracChangeset for help on using the changeset viewer.