Make WordPress Core


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

Use PLUGINDIR. Props z720 and Nazgul. fixes #3909

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.