Changeset 2366
- Timestamp:
- 02/21/2005 04:19:43 AM (21 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
wp-atom.php (modified) (1 diff)
-
wp-includes/functions.php (modified) (2 diffs)
-
wp-rdf.php (modified) (2 diffs)
-
wp-rss.php (modified) (1 diff)
-
wp-rss2.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-atom.php
r2321 r2366 21 21 <link rel="alternate" type="text/html" href="<?php bloginfo_rss('home') ?>" /> 22 22 <tagline><?php bloginfo_rss("description") ?></tagline> 23 <modified><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT') ); ?></modified>24 <copyright>Copyright <?php echo mysql2date('Y', get_lastpostdate('blog') ); ?></copyright>23 <modified><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></modified> 24 <copyright>Copyright <?php echo mysql2date('Y', get_lastpostdate('blog'), 0); ?></copyright> 25 25 <generator url="http://wordpress.org/" version="<?php bloginfo_rss('version'); ?>">WordPress</generator> 26 26 -
trunk/wp-includes/functions.php
r2365 r2366 16 16 } 17 17 18 function mysql2date($dateformatstring, $mysqlstring, $ use_b2configmonthsdays = 1) {18 function mysql2date($dateformatstring, $mysqlstring, $translate = true) { 19 19 global $month, $weekday, $month_abbrev, $weekday_abbrev; 20 20 $m = $mysqlstring; … … 23 23 } 24 24 $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)); 25 if (!empty($month) && !empty($weekday) && $ use_b2configmonthsdays) {25 if (!empty($month) && !empty($weekday) && $translate) { 26 26 $datemonth = $month[date('m', $i)]; 27 27 $datemonth_abbrev = $month_abbrev[$datemonth]; -
trunk/wp-rdf.php
r2272 r2366 26 26 <link><?php bloginfo_rss('url') ?></link> 27 27 <description><?php bloginfo_rss('description') ?></description> 28 <dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT') ); ?></dc:date>28 <dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></dc:date> 29 29 <admin:generatorAgent rdf:resource="http://wordpress.org/?v=<?php echo $wp_version ?>"/> 30 30 <sy:updatePeriod>hourly</sy:updatePeriod> … … 43 43 <title><?php the_title_rss() ?></title> 44 44 <link><?php permalink_single_rss() ?></link> 45 <dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', $post->post_date_gmt); ?></dc:date>45 <dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', $post->post_date_gmt, false); ?></dc:date> 46 46 <dc:creator><?php the_author() ?></dc:creator> 47 47 <?php the_category_rss('rdf') ?> -
trunk/wp-rss.php
r2318 r2366 19 19 <link><?php bloginfo_rss('url') ?></link> 20 20 <description><?php bloginfo_rss('description') ?></description> 21 <lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), 0); ?></lastBuildDate>21 <lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></lastBuildDate> 22 22 <docs>http://backend.userland.com/rss092</docs> 23 23 <language><?php echo get_option('rss_language'); ?></language> -
trunk/wp-rss2.php
r2318 r2366 25 25 <link><?php bloginfo_rss('url') ?></link> 26 26 <description><?php bloginfo_rss("description") ?></description> 27 <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), 0); ?></pubDate>27 <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></pubDate> 28 28 <generator>http://wordpress.org/?v=<?php bloginfo_rss('version'); ?></generator> 29 29 <language><?php echo get_option('rss_language'); ?></language> … … 34 34 <link><?php permalink_single_rss() ?></link> 35 35 <comments><?php comments_link(); ?></comments> 36 <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_the_time('Y-m-d H:i:s') ); ?></pubDate>36 <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_the_time('Y-m-d H:i:s'), false); ?></pubDate> 37 37 <dc:creator><?php the_author() ?></dc:creator> 38 38 <?php the_category_rss() ?>
Note: See TracChangeset
for help on using the changeset viewer.