Make WordPress Core

Changeset 4972


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

Use PLUGINDIR. Props z720 and Nazgul. fixes #3909

Location:
trunk
Files:
2 edited

Legend:

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

    r4811 r4972  
    117117                if ( $style != '' )
    118118                        $style = 'class="' . $style . '"';
    119                 if ( is_writable(ABSPATH . 'wp-content/plugins/' . $plugin_file) )
     119                if ( is_writable(ABSPATH . PLUGINDIR . '/' . $plugin_file) )
    120120                        $edit = "<a href='plugin-editor.php?file=$plugin_file' title='".__('Open this file in the Plugin Editor')."' class='edit'>".__('Edit')."</a>";
    121121                else
  • 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.