Make WordPress Core

Changeset 4972 for trunk/wp-settings.php


Ignore:
Timestamp:
03/06/2007 05:47:27 PM (19 years ago)
Author:
ryan
Message:

Use PLUGINDIR. Props z720 and Nazgul. fixes #3909

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-settings.php

    r4926 r4972  
    202202    if ( is_array($current_plugins) ) {
    203203        foreach ($current_plugins as $plugin) {
    204             if ('' != $plugin && file_exists(ABSPATH . 'wp-content/plugins/' . $plugin))
    205                 include_once(ABSPATH . 'wp-content/plugins/' . $plugin);
     204            if ('' != $plugin && file_exists(ABSPATH . PLUGINDIR . '/' . $plugin))
     205                include_once(ABSPATH . PLUGINDIR . '/' . $plugin);
    206206        }
    207207    }
Note: See TracChangeset for help on using the changeset viewer.