Make WordPress Core


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

    r4144 r4202  
    1313   
    1414        if ( !empty($submenu[$item[2]]) || current_user_can($item[1]) ) {
    15                 if ( file_exists(ABSPATH . "wp-content/plugins/{$item[2]}") )
     15                if ( file_exists(ABSPATH . PLUGINDIR . "/{$item[2]}") )
    1616                        echo "\n\t<li><a href='" . get_option('siteurl') . "/wp-admin/admin.php?page={$item[2]}'$class>{$item[0]}</a></li>";
    1717                else
    … …  
    4141$menu_hook = get_plugin_page_hook($item[2], $parent_file);
    4242
    43 if (file_exists(ABSPATH . "wp-content/plugins/{$item[2]}") || ! empty($menu_hook)) {
     43if (file_exists(ABSPATH . PLUGINDIR . "/{$item[2]}") || ! empty($menu_hook)) {
    4444        if ( 'admin.php' == $pagenow )
    4545                echo "\n\t<li><a href='" . get_option('siteurl') . "/wp-admin/admin.php?page={$item[2]}'$class>{$item[0]}</a></li>";
Note: See TracChangeset for help on using the changeset viewer.