Add a constant for allow_subdirectory_install as conventional plugins have to be disabled on network.php. fixes #13844.

git-svn-id: https://develop.svn.wordpress.org/trunk@15225 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-06-11 16:38:11 +00:00
parent f08169848f
commit f680252c00
1 changed files with 3 additions and 0 deletions

View File

@ -62,6 +62,9 @@ function allow_subdirectory_install() {
if ( apply_filters( 'allow_subdirectory_install', false ) )
return true;
if ( defined( 'ALLOW_SUBDIRECTORY_INSTALL' ) && ALLOW_SUBDIRECTORY_INSTALL )
return true;
$post = $wpdb->get_row( "SELECT ID FROM $wpdb->posts WHERE post_date < DATE_SUB(NOW(), INTERVAL 1 MONTH) AND post_status = 'publish'" );
if ( empty( $post ) )
return true;