WordPress.org

Make WordPress Core

Changeset 18775


Ignore:
Timestamp:
09/25/2011 07:24:15 PM (7 years ago)
Author:
nacin
Message:

Use WP_PLUGIN_DIR, not PLUGINDIR. props ocean90, fixes #18772.

File:
1 edited

Legend:

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

    r18577 r18775  
    104104                $submenu[$item[2]] = array_values($submenu[$item[2]]);  // Re-index.
    105105                $menu_hook = get_plugin_page_hook($submenu[$item[2]][0][2], $item[2]);
    106                 if ( file_exists(ABSPATH . PLUGINDIR . "/{$submenu[$item[2]][0][2]}") || !empty($menu_hook))
     106                if ( file_exists(WP_PLUGIN_DIR . "/{$submenu[$item[2]][0][2]}") || !empty($menu_hook))
    107107                    $options[] = "<a href='admin.php?page={$submenu[$item[2]][0][2]}'$class>{$item[0]}</a>";
    108108                else
Note: See TracChangeset for help on using the changeset viewer.