Make WordPress Core


Ignore:
Timestamp:
09/26/2004 06:12:12 PM (22 years ago)
Author:
michelvaldrighi
Message:

fix for #317: part one, avoid activating the same plugin twice

File:
1 edited

Legend:

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

    r1522 r1711  
    99        if ('activate' == $_GET['action']) {
    1010                $current = get_settings('active_plugins');
    11                 $current[] = trim( $_GET['plugin'] );
     11                if (!in_array($_GET['plugin'], $current)) {
     12                        $current[] = trim( $_GET['plugin'] );
     13                }
    1214                sort($current);
    1315                update_option('active_plugins', $current);
Note: See TracChangeset for help on using the changeset viewer.