Changeset 2699286
- Timestamp:
- 03/25/2022 02:45:06 AM (4 years ago)
- File:
-
- 1 edited
-
avoid-duplicate-posts/trunk/index.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
avoid-duplicate-posts/trunk/index.php
r2698724 r2699286 5 5 Description: Avoid all duplicate posts on homepage (applies to all posts, including widgets). 6 6 Author: MyThemeShop 7 Version: 1.0.2-beta 7 Version: 1.0.2-beta-2 8 8 Author URI: http://mythemeshop.com/ 9 9 */ … … 11 11 add_action( 'parse_query', 'mts_exclude_duplicates' ); 12 12 function mts_exclude_duplicates( &$query ) { 13 if (!is_home()) return; 13 if ( ! is_home() ) { 14 return; 15 } 16 14 17 global $adp_posts; 15 18 $disable_now = $query->get('adp_disable'); // use 'adp_disable' to prevent exclusion
Note: See TracChangeset
for help on using the changeset viewer.