Make WordPress Core


Ignore:
Timestamp:
05/27/2008 05:55:24 PM (18 years ago)
Author:
ryan
Message:

Allow wp-content to exist outside of webroot. Props sambauers. see #6938

File:
1 edited

Legend:

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

    r7998 r7999  
    5959                }
    6060
    61                 if (! ( file_exists(ABSPATH . PLUGINDIR . "/$plugin_page") && is_file( ABSPATH . PLUGINDIR . "/$plugin_page") ) )
     61                if (! ( file_exists(WP_PLUGIN_DIR . "/$plugin_page") && is_file(WP_PLUGIN_DIR . "/$plugin_page") ) )
    6262                        wp_die(sprintf(__('Cannot load %s.'), htmlentities($plugin_page)));
    6363
    … …  
    6767                        require_once(ABSPATH . 'wp-admin/admin-header.php');
    6868
    69                 include(ABSPATH . PLUGINDIR . "/$plugin_page");
     69                include(WP_PLUGIN_DIR . "/$plugin_page");
    7070        }
    7171
Note: See TracChangeset for help on using the changeset viewer.