From 810bf22215745ceae75a6b563feaad31bc4a25b1 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 21 Feb 2005 04:19:43 +0000 Subject: [PATCH] Do not translate dates in feeds. http://mosquito.wordpress.org/view.php?id=924. Reviewed by morganiq. git-svn-id: http://svn.automattic.com/wordpress/trunk@2366 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-atom.php | 4 ++-- wp-includes/functions.php | 4 ++-- wp-rdf.php | 4 ++-- wp-rss.php | 2 +- wp-rss2.php | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/wp-atom.php b/wp-atom.php index 4275a8ef8a..3f4136ac3d 100644 --- a/wp-atom.php +++ b/wp-atom.php @@ -20,8 +20,8 @@ $more = 1; <?php bloginfo_rss('name') ?> - - Copyright + + Copyright WordPress diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 8df3d9b4fa..bc62a89019 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -15,14 +15,14 @@ function get_profile($field, $user = false) { return $wpdb->get_var("SELECT $field FROM $wpdb->users WHERE user_login = '$user'"); } -function mysql2date($dateformatstring, $mysqlstring, $use_b2configmonthsdays = 1) { +function mysql2date($dateformatstring, $mysqlstring, $translate = true) { global $month, $weekday, $month_abbrev, $weekday_abbrev; $m = $mysqlstring; if (empty($m)) { return false; } $i = mktime(substr($m,11,2),substr($m,14,2),substr($m,17,2),substr($m,5,2),substr($m,8,2),substr($m,0,4)); - if (!empty($month) && !empty($weekday) && $use_b2configmonthsdays) { + if (!empty($month) && !empty($weekday) && $translate) { $datemonth = $month[date('m', $i)]; $datemonth_abbrev = $month_abbrev[$datemonth]; $dateweekday = $weekday[date('w', $i)]; diff --git a/wp-rdf.php b/wp-rdf.php index 67392ed95d..b5a717f76c 100644 --- a/wp-rdf.php +++ b/wp-rdf.php @@ -25,7 +25,7 @@ $more = 1; <?php bloginfo_rss('name') ?> - + hourly 1 @@ -42,7 +42,7 @@ $more = 1; <?php the_title_rss() ?> - post_date_gmt); ?> + post_date_gmt, false); ?> diff --git a/wp-rss.php b/wp-rss.php index 7c2ac21231..b7a63efca0 100644 --- a/wp-rss.php +++ b/wp-rss.php @@ -18,7 +18,7 @@ $more = 1; <?php bloginfo_rss('name') ?> - + http://backend.userland.com/rss092 diff --git a/wp-rss2.php b/wp-rss2.php index d4ef5239d6..bb3bec836e 100644 --- a/wp-rss2.php +++ b/wp-rss2.php @@ -24,7 +24,7 @@ $more = 1; <?php bloginfo_rss('name'); ?> - + http://wordpress.org/?v= @@ -33,7 +33,7 @@ $more = 1; <?php the_title_rss() ?> - +