无法修改标题警告

时间:2017-05-15 12:25:15

标签: wordpress

我从我的网站收到以下警告输出:

Warning: Cannot modify header information - headers already sent by (output started at /www/doc/www.xxx.com/www/themes/Divi/includes/builder/functions.php:1) in /www/doc/www.xxx.com/wp-includes/pluggable.php on line 1195.

functions.php中的第一行是

第1195行是:

$location = wp_sanitize_redirect($location);

if ( !$is_IIS && PHP_SAPI != 'cgi-fcgi' )
    status_header($status); // This causes problems on IIS and some FastCGI setups

    **header("Location: $location", true, $status);**

    return true;
}
endif;

"header("Location: $location", true, $status);"

0 个答案:

没有答案