[Resolved] xml parse error in RSS feed URL
I found that RSS feed URL is output without using CER (character entity references) which causes XML parse error in a certain case.
I request to fix this bug.
1. I use wordpress with a MIME-type ‘application/xhtml+xml,’ thus many browser fail to parse xml if a url includes ‘&’ without using CER.
2. I sometimes use the search form on my wordpress site to find old my article. The results of it includes RSS feed with search key words, e.g., http://url/wordpress/?s=search&feed=rss2
3. After all my wordpress cannot return any search result without parse error.
I believe that the RSS feed URL should be http://url/wordpress?s=search&feed=rss2
I found temporal result.
In the function
get_search_feed_linkat the file ‘link-templete.php,’ I added the following code:
$link = str_replace('&','&',$link); $link = str_replace('&','&',$link);
after calling the function
I request to fix this bug. Thank you.
At first, I try to fix the function
However, this function used to search comment in dashboard and my fix induces another bug, that releases a comment_status attribute.
- The topic ‘[Resolved] xml parse error in RSS feed URL’ is closed to new replies.