Changeset 2788253
- Timestamp:
- 09/21/2022 03:41:27 PM (3 years ago)
- Location:
- iteras/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (2 diffs)
-
iteras.php (modified) (1 diff)
-
public/iteras-public.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
iteras/trunk/README.txt
r2685042 r2788253 2 2 Tags: paywall, subscribe, subscriptions, subscription, subscribers, access-control, paid content, premium, premium content, monetize, magazine, media pass, registration, billing, membership, member, earn money 3 3 Requires at least: 3.5.1 4 Tested up to: 5.9.15 Stable tag: 1.4. 04 Tested up to: 6.0.2 5 Stable tag: 1.4.1 6 6 Requires PHP: 4.0 7 7 License: GPLv2 or later … … 111 111 112 112 == Changelog == 113 = 1.4.1 = 114 * Content in feeds (such as RSS) is now truncated if the post has been marked as paywalled 115 113 116 = 1.4.0 = 114 117 * Added `iteras_override_content_paywall` filter for overriding the decision of paywalling the content -
iteras/trunk/iteras.php
r2685036 r2788253 13 13 * Plugin URI: https://app.iteras.dk 14 14 * Description: Integration with ITERAS, a cloud-based state-of-the-art system for managing subscriptions/memberships and payments. 15 * Version: 1.4. 015 * Version: 1.4.1 16 16 * Author: ITERAS 17 17 * Author URI: https://www.iteras.dk -
iteras/trunk/public/iteras-public.php
r2685042 r2788253 16 16 class Iteras { 17 17 18 const VERSION = '1.4. 0';18 const VERSION = '1.4.1'; 19 19 20 20 const SETTINGS_KEY = "iteras_settings"; … … 45 45 46 46 add_filter( 'the_content', array( $this, 'potentially_paywall_content_filter' ), 99 ); 47 add_filter( 'the_content_feed', array( $this, 'potentially_paywall_content_filter' ), 99 ); 47 48 48 49 add_shortcode( 'iteras-ordering', array( $this, 'ordering_shortcode') ); … … 387 388 global $post; 388 389 389 if (! is_singular() || !in_the_loop())390 if (!(is_feed() || is_singular()) || !in_the_loop()) 390 391 return $content; 391 392 … … 463 464 } 464 465 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; 466 468 } 467 469
Note: See TracChangeset
for help on using the changeset viewer.