Serve RSS feeds with the proper mime-type: `application/rss+xml`. The reason for hacking around browsers by using `text/xml` appears to no longer be relevant.
Props @chriscct7. Reverts [11334] and [11358] Fixes #15110. git-svn-id: https://develop.svn.wordpress.org/trunk@32468 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5d69ee66dd
commit
6ce6180884
|
@ -5,7 +5,7 @@
|
|||
* @package WordPress
|
||||
*/
|
||||
|
||||
header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true);
|
||||
header('Content-Type: ' . feed_content_type('rss') . '; charset=' . get_option('blog_charset'), true);
|
||||
$more = 1;
|
||||
|
||||
echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* @package WordPress
|
||||
*/
|
||||
|
||||
header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true);
|
||||
header('Content-Type: ' . feed_content_type('rss2') . '; charset=' . get_option('blog_charset'), true);
|
||||
|
||||
echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>';
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* @package WordPress
|
||||
*/
|
||||
|
||||
header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true);
|
||||
header('Content-Type: ' . feed_content_type('rss2') . '; charset=' . get_option('blog_charset'), true);
|
||||
$more = 1;
|
||||
|
||||
echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>';
|
||||
|
|
Loading…
Reference in New Issue