Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_not_installed ›

Desde3.0.0
Obsoleton/a
wp_not_installed ( Sem parâmetros )
Acesso:
  • private
Definido em:
Codex:

Redirect to the installer if WordPress is not installed.

Dies with an error message when Multisite is enabled.



Fonte

function wp_not_installed() {
	if ( is_multisite() ) {
		if ( ! is_blog_installed() && ! wp_installing() ) {
			nocache_headers();

			wp_die( __( 'The site you have requested is not installed properly. Please contact the system administrator.' ) );
		}
	} elseif ( ! is_blog_installed() && ! wp_installing() ) {
		nocache_headers();

		require( ABSPATH . WPINC . '/kses.php' );
		require( ABSPATH . WPINC . '/pluggable.php' );
		require( ABSPATH . WPINC . '/formatting.php' );

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

		wp_redirect( $link );
		die();
	}
}