Make WordPress Core


Ignore:
Timestamp:
09/21/2006 08:46:39 PM (19 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/admin.php

    r4183 r4202  
    5353        }
    5454
    55         if (! file_exists(ABSPATH . "wp-content/plugins/$plugin_page"))
     55        if (! file_exists(ABSPATH . PLUGINDIR . "/$plugin_page"))
    5656            wp_die(sprintf(__('Cannot load %s.'), htmlentities($plugin_page)));
    5757
     
    6161            require_once(ABSPATH . '/wp-admin/admin-header.php');
    6262
    63         include(ABSPATH . "wp-content/plugins/$plugin_page");
     63        include(ABSPATH . PLUGINDIR . "/$plugin_page");
    6464    }
    6565
Note: See TracChangeset for help on using the changeset viewer.