関数 wp_not_installed()
2014/12/05
目次
WordPress インストールされていない場合の処理関数 を定義
定義ファイル :/blog/wp-includes/load.php
呼出元 :/blog/wp-settings.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | function wp_not_installed() { if ( is_multisite() ) { if ( ! is_blog_installed() && ! defined( 'WP_INSTALLING' ) ) { nocache_headers(); 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' ) ) { 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(); } } |