我已经安装了英文WordPress Admin(版本1.5.1 | Par khromov,他与我的WordPress版本兼容),并且我已经更改了英文wp Admin/英文wp Admin。php
//Switch locale if we are on an admin page
if(is_admin()) {
return \'fr_FR\';
}
//If using WPLANG, otherwise check DB
if(defined(\'WPLANG\')) {
return (WPLANG === \'fr_FR\' || trim(WPLANG) === \'\') ? true : false;
}
else
{
//If language not en_US and not empty in database
if(function_exists(\'get_bloginfo\') && (get_bloginfo(\'language\') !== \'fr_FR\' || trim(get_bloginfo(\'language\')) !== \'\') ) {
return false;
}
else {
return true;
}
}
在我的主题中,我有这样一句话;
<?php
$t4pthemename = "HUMIX";
if ( get_stylesheet_directory() == get_template_directory() ) {
define(\'T4P_URL\', get_template_directory() . \'/library/functions/\');
define(\'T4P_DIRECTORY\', get_template_directory_uri() . \'/library/functions/\');
} else {
define(\'T4P_URL\', get_template_directory() . \'/library/functions/\');
define(\'T4P_DIRECTORY\', get_template_directory_uri() . \'/library/functions/\');
}
require_once( get_template_directory() . \'/library/functions/options-framework.php\' );
require_once( get_template_directory() . \'/library/functions/basic-functions.php\' );
?>
我怎么能做到?我放了什么?