don't translate months and weekdays in date strings
git-svn-id: http://svn.automattic.com/wordpress/trunk@1337 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
be0bac91d8
commit
988a4ce48e
|
@ -16,7 +16,7 @@ header('Content-type: text/xml', true);
|
||||||
<title><?php bloginfo_rss('name') ?></title>
|
<title><?php bloginfo_rss('name') ?></title>
|
||||||
<link><?php bloginfo_rss('url') ?></link>
|
<link><?php bloginfo_rss('url') ?></link>
|
||||||
<description><?php bloginfo_rss('description') ?></description>
|
<description><?php bloginfo_rss('description') ?></description>
|
||||||
<lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT')); ?></lastBuildDate>
|
<lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), 0); ?></lastBuildDate>
|
||||||
<docs>http://backend.userland.com/rss092</docs>
|
<docs>http://backend.userland.com/rss092</docs>
|
||||||
|
|
||||||
<?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>
|
<?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>
|
||||||
|
@ -41,4 +41,4 @@ if (get_settings('rss_use_excerpt')) {
|
||||||
</item>
|
</item>
|
||||||
<?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
|
<?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
|
||||||
</channel>
|
</channel>
|
||||||
</rss>
|
</rss>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
if (!isset($feed)) {
|
if (!isset($feed)) {
|
||||||
$blog = 1;
|
$blog = 1;
|
||||||
$doing_rss = 1;
|
// $doing_rss = 1; # DEBUG
|
||||||
require('wp-blog-header.php');
|
require('wp-blog-header.php');
|
||||||
}
|
}
|
||||||
$more = 1;
|
$more = 1;
|
||||||
|
@ -23,7 +23,7 @@ header('Content-type: text/xml', true);
|
||||||
<link><?php bloginfo_rss('url') ?></link>
|
<link><?php bloginfo_rss('url') ?></link>
|
||||||
<description><?php bloginfo_rss("description") ?></description>
|
<description><?php bloginfo_rss("description") ?></description>
|
||||||
<copyright>Copyright <?php echo mysql2date('Y', get_lastpostdate()); ?></copyright>
|
<copyright>Copyright <?php echo mysql2date('Y', get_lastpostdate()); ?></copyright>
|
||||||
<pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT')); ?></pubDate>
|
<pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), 0); ?></pubDate>
|
||||||
<generator>http://wordpress.org/?v=<?php echo $wp_version ?></generator>
|
<generator>http://wordpress.org/?v=<?php echo $wp_version ?></generator>
|
||||||
|
|
||||||
<?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>
|
<?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>
|
||||||
|
@ -31,7 +31,7 @@ header('Content-type: text/xml', true);
|
||||||
<title><?php the_title_rss() ?></title>
|
<title><?php the_title_rss() ?></title>
|
||||||
<link><?php permalink_single_rss() ?></link>
|
<link><?php permalink_single_rss() ?></link>
|
||||||
<comments><?php comments_link(); ?></comments>
|
<comments><?php comments_link(); ?></comments>
|
||||||
<pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', $post->post_date_gmt); ?></pubDate>
|
<pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', $post->post_date_gmt, 0); ?></pubDate>
|
||||||
<?php the_category_rss() ?>
|
<?php the_category_rss() ?>
|
||||||
<guid><?php the_permalink($id); ?></guid>
|
<guid><?php the_permalink($id); ?></guid>
|
||||||
<?php if (get_settings('rss_use_excerpt')) : ?>
|
<?php if (get_settings('rss_use_excerpt')) : ?>
|
||||||
|
@ -44,4 +44,4 @@ header('Content-type: text/xml', true);
|
||||||
</item>
|
</item>
|
||||||
<?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
|
<?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
|
||||||
</channel>
|
</channel>
|
||||||
</rss>
|
</rss>
|
||||||
|
|
Loading…
Reference in New Issue