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

git-svn-id: http://svn.automattic.com/wordpress/trunk@15225 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-06-11 16:38:11 +00:00
parent 7d84b75d72
commit fc131b5ca6
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 ) ) if ( apply_filters( 'allow_subdirectory_install', false ) )
return true; 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'" ); $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 ) ) if ( empty( $post ) )
return true; return true;