Make WordPress Core

Changeset 6897


Ignore:
Timestamp:
02/18/2008 05:42:51 PM (17 years ago)
Author:
ryan
Message:

Make sure plugin is a file before loading. Props filosofo. fixes #5822

File:
1 edited

Legend:

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

    r6586 r6897  
    5454        }
    5555
    56         if (! file_exists(ABSPATH . PLUGINDIR . "/$plugin_page"))
     56        if (! ( file_exists(ABSPATH . PLUGINDIR . "/$plugin_page") && is_file( ABSPATH . PLUGINDIR . "/$plugin_page") ) )
    5757            wp_die(sprintf(__('Cannot load %s.'), htmlentities($plugin_page)));
    5858
Note: See TracChangeset for help on using the changeset viewer.