WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/21/2006 08:46:39 PM (14 years ago)
Author:
ryan
Message:

Turn hard-coded paths to defines. Pull gettext includes int wp-settings. Props mdawaffe. fixes #3157

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/plugin-editor.php

    r4111 r4202  
    1515
    1616$file = validate_file_to_edit($file, $plugin_files);
    17 $real_file = get_real_file_to_edit("wp-content/plugins/$file");
     17$real_file = get_real_file_to_edit( PLUGINDIR . "/$file");
    1818
    1919switch($action) {
     
    4747    require_once('admin-header.php');
    4848
    49     update_recently_edited("wp-content/plugins/$file");
     49    update_recently_edited(PLUGINDIR . "/$file");
    5050
    5151    if (!is_file($real_file))
Note: See TracChangeset for help on using the changeset viewer.