allow_subdirectory_install [ WordPress Function ]
allow_subdirectory_install ( No parameters )
| Returns: |
|
| Defined at: |
|
Soorgelijke functies: allow_subdomain_install, wp_plugin_directory_constants, is_subdomain_install, get_all_category_ids, wp_not_installed
Allow subdirectory install
Source
<?php
function allow_subdirectory_install() {
global $wpdb;
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;
return false;
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- PHPXRef 0.7 : WordPress : /wp-admin/network.php source
260 // Uh oh: 261 if ( !allow_subdirectory_install() ) 262 echo ' <strong>' . ... 270 // Uh oh: 271 if ( !allow_subdirectory_install() ) 272 echo ' <strong>' .
phpxref.ftwr.co.uk - /wp-admin/network.php source - PHP Cross Reference (PHPXRef ...
Jun 1, 2011 ... 250 // Uh oh: 251 if ( !allow_subdirectory_install() ) 252 echo ' <strong>' . ... 260 // Uh oh: 261 if ( !allow_subdirectory_install() ) 262 echo ...
xref.yoast.com - PHPXref.com - WordPress 3.0.1 - /wp-admin/network.php source
Aug 19, 2010 ... 232 // Uh oh: 233 if ( !allow_subdirectory_install() ) 234 echo ' <strong>' . ... 242 // Uh oh: 243 if ( !allow_subdirectory_install() ) 244 echo ...
phpxref.com - org/trunk/wp-admin - WordPress SVN
[0-9]+|', $domain ) ) return false; return true; } /** * Allow subdirectory install * * @ since 3.0.0 * @return bool Whether subdirectory install is allowed */ function ...
core.svn.wordpress.org