wp_not_installed [ WordPress Function ]
wp_not_installed ( No parameters )
| Access: |
|
| 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ý
- PHPXRef 0.7 : WordPress : Function Reference: wp_not_installed()
Function and Method Cross Reference. wp_not_installed(). Defined at: /wp- includes/load.php -> line 417. Referenced 1 times: /wp-settings.php -> line 106 ...
phpxref.ftwr.co.uk - wp_not_installed (WordPress Function) - WPSeek.com
WordPress lookup for wp_not_installed, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com - wp_not_installed - PHP Cross Reference of WordPress Source - Yoast
Jun 1, 2011 ... Function and Method Cross Reference. wp_not_installed(). Defined at: /wp- includes/load.php -> line 410. Referenced 1 times: /wp-settings.php ...
xref.yoast.com - Accesing WordPress API within my PHP app - Stack Overflow
wp-config.php:19 9 1.3650 6103276 wp_not_installed( ) ../wp-settings.php:100 10 1.6258 7676148 wp_redirect( ) ../load.php:408 11 1.6261 ...
stackoverflow.com