wp_not_installed

Redirect to the installer if WordPress is not installed.

Description

wp_not_installed(); 

Dies with an error message when Multisite is enabled.


Usage

  1. if ( !function_exists( 'wp_not_installed' ) ) { 
  2. require_once ABSPATH . WPINC . '/load.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wp_not_installed(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/load.php  
  1. function wp_not_installed() { 
  2. if ( is_multisite() ) { 
  3. if ( ! is_blog_installed() && ! wp_installing() ) { 
  4.  
  5. wp_die( __( 'The site you have requested is not installed properly. Please contact the system administrator.' ) ); 
  6. } elseif ( ! is_blog_installed() && ! wp_installing() ) { 
  7.  
  8. require( ABSPATH . WPINC . '/kses.php' ); 
  9. require( ABSPATH . WPINC . '/pluggable.php' ); 
  10. require( ABSPATH . WPINC . '/formatting.php' ); 
  11.  
  12. $link = wp_guess_url() . '/wp-admin/install.php'; 
  13.  
  14. wp_redirect( $link ); 
  15. die();