Plugin Directory

Changeset 2788253


Ignore:
Timestamp:
09/21/2022 03:41:27 PM (3 years ago)
Author:
iteras
Message:

Release 1.4.

Location:
iteras/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • iteras/trunk/README.txt

    r2685042 r2788253  
    22Tags: paywall, subscribe, subscriptions, subscription, subscribers, access-control, paid content, premium, premium content, monetize, magazine, media pass, registration, billing, membership, member, earn money
    33Requires at least: 3.5.1
    4 Tested up to: 5.9.1
    5 Stable tag: 1.4.0
     4Tested up to: 6.0.2
     5Stable tag: 1.4.1
    66Requires PHP: 4.0
    77License: GPLv2 or later
     
    111111
    112112== Changelog ==
     113= 1.4.1 =
     114* Content in feeds (such as RSS) is now truncated if the post has been marked as paywalled
     115
    113116= 1.4.0 =
    114117* Added `iteras_override_content_paywall` filter for overriding the decision of paywalling the content
  • iteras/trunk/iteras.php

    r2685036 r2788253  
    1313 * Plugin URI:        https://app.iteras.dk
    1414 * Description:       Integration with ITERAS, a cloud-based state-of-the-art system for managing subscriptions/memberships and payments.
    15  * Version:           1.4.0
     15 * Version:           1.4.1
    1616 * Author:            ITERAS
    1717 * Author URI:        https://www.iteras.dk
  • iteras/trunk/public/iteras-public.php

    r2685042 r2788253  
    1616class Iteras {
    1717
    18   const VERSION = '1.4.0';
     18  const VERSION = '1.4.1';
    1919
    2020  const SETTINGS_KEY = "iteras_settings";
     
    4545
    4646    add_filter( 'the_content', array( $this, 'potentially_paywall_content_filter' ), 99 );
     47    add_filter( 'the_content_feed', array( $this, 'potentially_paywall_content_filter' ), 99 );
    4748
    4849    add_shortcode( 'iteras-ordering', array( $this, 'ordering_shortcode') );
     
    387388    global $post;
    388389
    389     if (!is_singular() || !in_the_loop())
     390    if (!(is_feed() || is_singular()) || !in_the_loop())
    390391      return $content;
    391392
     
    463464      }
    464465
    465       $content = '<div class="iteras-content-wrapper '.$truncate_class.'">'.$content.'</div>'.$extra;
     466      if (!is_feed())
     467        $content = '<div class="iteras-content-wrapper '.$truncate_class.'">'.$content.'</div>'.$extra;
    466468    }
    467469   
Note: See TracChangeset for help on using the changeset viewer.