Changeset 745113
- Timestamp:
- 07/23/2013 06:22:39 PM (13 years ago)
- Location:
- single-latest-posts-lite/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
single-latest-posts.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
single-latest-posts-lite/trunk/readme.txt
r744585 r745113 5 5 Requires at least: 3.0 6 6 Tested up to: 3.5.1 7 Stable tag: 1.4. 17 Stable tag: 1.4.2 8 8 9 9 This plugin allows you to pull all the recent posts from your WordPress blog and display them the way you want … … 80 80 == Changelog == 81 81 82 = 1.4.2 = 83 * Bug fix: Checking if filter_where exists when using time frame and multiple instances to avoid duplicate function fatal errors. 84 82 85 = 1.4.1 = 83 86 * Minor bug fix: removed debugging JavaScript code. -
single-latest-posts-lite/trunk/single-latest-posts.php
r744585 r745113 4 4 Plugin URI: http://wordpress.org/extend/plugins/single-latest-posts-lite/ 5 5 Description: Display the latest posts available in your WordPress blog using functions, shortcodes or widgets. 6 Version: 1.4. 16 Version: 1.4.2 7 7 Author: L'Elite 8 8 Author URI: http://laelite.info/ … … 1169 1169 // Nasty hack to access this variable from inside callback filters 1170 1170 $GLOBALS['slp_time_frame'] = (int)$time_frame; 1171 function filter_where( $where ) { 1172 $days = (int)$GLOBALS['slp_time_frame']; 1173 $where .= " AND post_date >= '".date('Y-m-d', strtotime("-$days days"))."'"; 1174 return $where; 1171 if( !function_exists( 'filter_where' ) ) { 1172 function filter_where( $where ) { 1173 $days = (int)$GLOBALS['slp_time_frame']; 1174 $where .= " AND post_date >= '".date('Y-m-d', strtotime("-$days days"))."'"; 1175 return $where; 1176 } 1175 1177 } 1176 1178 add_filter( 'posts_where', 'filter_where' );
Note: See TracChangeset
for help on using the changeset viewer.