Changeset 639833
- Timestamp:
- 12/15/2012 11:14:03 PM (13 years ago)
- Location:
- network-latest-posts/trunk
- Files:
-
- 2 edited
-
network-latest-posts.php (modified) (6 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
network-latest-posts/trunk/network-latest-posts.php
r639691 r639833 4 4 Plugin URI: http://en.8elite.com/network-latest-posts 5 5 Description: Display the latest posts from the blogs in your network using it as a function, shortcode or widget. 6 Version: 3.5. 36 Version: 3.5.4 7 7 Author: L'Elite 8 8 Author URI: http://laelite.info/ … … 128 128 * -- ThorHammer 129 129 * --- Spotted a warning when NLPosts couldn't find posts. 130 * 131 * -- Claas Augner 132 * **** Patch to correctly format dates for localization. 130 133 * 131 134 * That's it, let the fun begin! … … 660 663 $author = get_user_by('id',$field->post_author); 661 664 $format = (string)${'date_format_'.$all_blogkeys[$field->guid]}; 662 $dateobj = new DateTime(trim($field->post_date)); 663 $datepost = $dateobj->format("$format"); 665 $datepost = date_i18n($format, strtotime(trim( $field->post_date) ) ); 664 666 $blog_name = '<a href="'.${'blog_url_'.$all_blogkeys[$field->guid]}.'">'.${'blog_name_'.$all_blogkeys[$field->guid]}."</a>"; 665 667 // The network's root (main blog) is called 'blog', … … 716 718 $author = get_user_by('id',$field->post_author); 717 719 $format = (string)${'date_format_'.$all_blogkeys[$field->guid]}; 718 $dateobj = new DateTime(trim($field->post_date)); 719 $datepost = $dateobj->format("$format"); 720 $datepost = date_i18n($format, strtotime(trim( $field->post_date) ) ); 720 721 $blog_name = '<a href="'.${'blog_url_'.$all_blogkeys[$field->guid]}.'">'.${'blog_name_'.$all_blogkeys[$field->guid]}."</a>"; 721 722 // The network's root (main blog) is called 'blog', … … 880 881 $author = get_user_by('id',$field->post_author); 881 882 $format = (string)${'date_format_'.$all_blogkeys[$field->guid]}; 882 $dateobj = new DateTime(trim($field->post_date)); 883 $datepost = $dateobj->format("$format"); 883 $datepost = date_i18n($format, strtotime(trim( $field->post_date) ) ); 884 884 $blog_name = '<a href="'.${'blog_url_'.$all_blogkeys[$field->guid]}.'">'.${'blog_name_'.$all_blogkeys[$field->guid]}."</a>"; 885 885 // The network's root (main blog) is called 'blog', … … 936 936 $author = get_user_by('id',$field->post_author); 937 937 $format = (string)${'date_format_'.$all_blogkeys[$field->guid]}; 938 $dateobj = new DateTime(trim($field->post_date)); 939 $datepost = $dateobj->format("$format"); 938 $datepost = date_i18n($format, strtotime(trim( $field->post_date) ) ); 940 939 $blog_name = '<a href="'.${'blog_url_'.$all_blogkeys[$field->guid]}.'">'.${'blog_name_'.$all_blogkeys[$field->guid]}."</a>"; 941 940 // The network's root (main blog) is called 'blog', -
network-latest-posts/trunk/readme.txt
r639691 r639833 5 5 Requires at least: 3.0 6 6 Tested up to: 3.5 7 Stable tag: 3.5. 37 Stable tag: 3.5.4 8 8 9 9 This plugin allows you to pull all the recent posts from the blogs in your WordPress network and display them in your main site (or internal sites) … … 144 144 == Changelog == 145 145 146 = 3.5.4 = 147 * Support for date localization (specially in german) using i18n, thanks to Claas Augner for the patch. 148 146 149 = 3.5.3 = 147 150 * Fixing line returns when using display_content parameter. Mixing nl2br and do_shortcode to do the job.
Note: See TracChangeset
for help on using the changeset viewer.