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:
parent
f08169848f
commit
f680252c00
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user