我在警告无法修改 wordpress 中的标题信息时遇到问题:无法修改标题信息 - 标题已发送(输出开始于 /home/sixtydev/public_html/voxxydev/wp-content/themes/voxxy/header.php:15)在第 865 行的 /home/sixtydev/public_html/voxxydev/wp-includes/pluggable.php
我的重定向代码是:
if(isset($_GET['qry']) && !empty($_GET['qry'])){
$swl = mysql_query("update wp_share_idea set image".$_GET['qry']."='' where userId='".$delId."'");
wp_redirect("http://60degreedeveloper.info/voxxydev/user-profile/?msg='".$delId."'");
exit;
}
我的 header.php 代码:
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id="main">
*
* @package WordPress
* @subpackage Voxxy
* @since Voxxy 1.0
*/
?><html>
<head>
<title>Voxxy</title>
<link rel="profile" href="http://gmpg.org/xfn/11"/>
line no: 15:: <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url');?>"/>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"/>
和plugable.php 代码:
function wp_redirect($location, $status = 302) {
global $is_IIS;
$location = apply_filters('wp_redirect', $location, $status);
$status = apply_filters('wp_redirect_status', $status, $location);
if ( !$location ) // allows the wp_redirect filter to cancel a redirect
return false;
$location = wp_sanitize_redirect($location);
if ( !$is_IIS && php_sapi_name() != 'cgi-fcgi' )
status_header($status); // This causes problems on IIS and some FastCGI setups
line no:865:- header("Location: $location", true, $status);
}
我很困惑,问题出在哪里。提前致谢