【发布时间】:2015-09-30 17:06:23
【问题描述】:
我想在模板文件中使用这段代码:
if ( wp_is_mobile() ) {
wp_redirect( "/shop-mobile", $status );
}
但它说:/filewithcode 在第 1196 行的 .../wp_includes/pluggable.php 中已发送标头
我试图从空格中清除可插入文档。这里还有什么问题?谢谢
【问题讨论】:
-
我知道 6 年前有人问过这个问题 - 但只是偶然发现了这个问题。您可能应该使用响应式网页设计而不是 /shop-mobile