我对wordpress的安装有点问题。基本上,我有两台服务器:test.dev 和staging.dev.
设置(使用hosts文件),我刚刚复制了test.dev WordPress安装转移到临时服务器。在我的电脑上效果很好,但在没有test.dev 没有加载任何CSS或图像。我调查了一下,每一条路径仍在引用test.dev. 我在中有此功能functions.php:
function route_static_path($path)
{
echo get_template_directory_uri()."/".$path;
return true;
}
我认为
get_template_directory_uri() 可能设置为
wp-config.php 但事实并非如此。我真的很困惑这是从哪里来的。