Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_not_installed [ WordPress Function ]

wp_not_installed ( No parameters )
Access:
  • private
Defined at:



Redirects to the installer if WordPress is not installed.

Dies with an error message when multisite is enabled.

Source


<?php
function wp_not_installed() {
    if ( 
is_multisite() ) {
        if ( ! 
is_blog_installed() && ! defined'WP_INSTALLING' ) )
            
wp_die__'The site you have requested is not installed properly. Please contact the system administrator.' ) );
    } elseif ( ! 
is_blog_installed() && false === strpos$_SERVER['PHP_SELF'], 'install.php' ) && !defined'WP_INSTALLING' ) ) {

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

        require( 
ABSPATH WPINC '/kses.php' );
        require( 
ABSPATH WPINC '/pluggable.php' );
        require( 
ABSPATH WPINC '/formatting.php' );
        
wp_redirect$link );
        die();
    }
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics