mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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:
parent
7d84b75d72
commit
fc131b5ca6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user