wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_not_installed › WordPress Function

Since3.0.0
已弃用n/a
wp_not_installed ( 没有参数 )
访问:
  • private
定义在:
文档:

Redirects to the installer if WordPress is not installed.

Dies with an error message when Multisite is enabled.


源码

function wp_not_installed() {
	if ( is_blog_installed() || wp_installing() ) {
		return;
	}

	nocache_headers();

	if ( is_multisite() ) {
		wp_die( __( 'The site you have requested is not installed properly. Please contact the system administrator.' ) );
	}

	require ABSPATH . WPINC . '/kses.php';
	require ABSPATH . WPINC . '/pluggable.php';

	$link = wp_guess_url() . '/wp-admin/install.php';

	wp_redirect( $link );
	die();
}