Wordpress'de Config.php Dosyasının Yeri Nasıl Değişir ?

Etiketler :
wp-load.php dosyasını açıyoruz.

PHP- Kodu

 if ( file_existsABSPATH ‘yeniyer/wp-config.php’) ) {
/** The config file resides in ABSPATH */ require_once( ABSPATH ‘ ‘yeniyer/wp-config.php ‘ );

} elseif ( 
file_existsdirname(ABSPATH) . ‘ ‘yeniyer/wp-config.php ‘ ) && ! file_existsdirname(ABSPATH) . /wp-settings.php’ ) ) {
/** The config file resides one level above ABSPATH but is not part of another install*/ require_once( dirname(ABSPATH) . ‘ ‘yeniyer/wp-config.php /wp-config.php’ );  
yeniyer yazdığım yerleri kendinize göre tamamlarsanız işlem bitmiştir.

0 yorum: