Plugin Directory

Changeset 2699286


Ignore:
Timestamp:
03/25/2022 02:45:06 AM (4 years ago)
Author:
MyThemeShop
Message:

Update to version 1.0.2-beta-2 from GitHub

File:
1 edited

Legend:

Unmodified
Added
Removed
  • avoid-duplicate-posts/trunk/index.php

    r2698724 r2699286  
    55Description: Avoid all duplicate posts on homepage (applies to all posts, including widgets).
    66Author: MyThemeShop
    7 Version: 1.0.2-beta
     7Version: 1.0.2-beta-2
    88Author URI: http://mythemeshop.com/
    99*/
     
    1111add_action( 'parse_query', 'mts_exclude_duplicates' );
    1212function mts_exclude_duplicates( &$query ) {
    13     if (!is_home()) return;
     13    if ( ! is_home() ) {
     14        return;
     15    }
     16
    1417    global $adp_posts;
    1518    $disable_now = $query->get('adp_disable'); // use 'adp_disable' to prevent exclusion
Note: See TracChangeset for help on using the changeset viewer.