Plugin Directory

Changeset 2049013


Ignore:
Timestamp:
03/12/2019 12:18:01 PM (7 years ago)
Author:
iteras
Message:

Changed paywall priority + only apply to single pages

Location:
iteras/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • iteras/trunk/README.txt

    r2044569 r2049013  
    33Requires at least: 3.5.1
    44Tested up to: 5.1
    5 Stable tag: 1.3.0
     5Stable tag: 1.3.1
    66License: GPLv2 or later
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7070
    7171== Changelog ==
     72= 1.3.1 =
     73* Moved down paywall priority so other shortcodes are run before truncating content
     74* Only apply paywall to detail pages (singles)
     75
    7276= 1.3.0 =
    7377* Show paywalled content for editors
  • iteras/trunk/iteras.php

    r2044569 r2049013  
    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.3.0
     15 * Version:           1.3.1
    1616 * Author:            ITERAS
    1717 * Author URI:        https://www.iteras.dk
  • iteras/trunk/languages/iteras-da_DK.po

    r2044569 r2049013  
    66"Project-Id-Version: iteras\n"
    77"Report-Msgid-Bugs-To: team@iteras.dk\n"
    8 "POT-Creation-Date: 2019-03-05 13:52+0100\n"
     8"POT-Creation-Date: 2019-03-05 14:07+0100\n"
    99"PO-Revision-Date: 2019-03-05 13:51+0100\n"
    1010"Last-Translator: Ole Laursen <olau@iteras.dk>\n"
  • iteras/trunk/public/iteras-public.php

    r2044569 r2049013  
    1616class Iteras {
    1717
    18   const VERSION = '1.3.0';
     18  const VERSION = '1.3.1';
    1919
    2020  const SETTINGS_KEY = "iteras_settings";
     
    4444    add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
    4545
    46     add_filter('the_content', array( $this, 'potentially_paywall_content_filter' ));
     46    add_filter( 'the_content', array( $this, 'potentially_paywall_content_filter' ), 99 );
    4747
    4848    add_shortcode( 'iteras-ordering', array( $this, 'ordering_shortcode') );
     
    355355    $computed_hmac = hash_hmac($algo, $data, $key);
    356356
    357     if ($computed_hmac !== false && $key &&
    358         (function_exists("hash_equals") ? !hash_equals($computed_hmac, $hmac) : $computed_hmac != $hmac))
     357    if ($computed_hmac !== false && $key && (function_exists("hash_equals") ? !hash_equals($computed_hmac, $hmac) : $computed_hmac != $hmac))
    359358      return false;
    360359
     
    384383  public function potentially_paywall_content($content) {
    385384    global $post;
     385
     386    if (!is_singular())
     387      return $content;
    386388
    387389    $paywall_ids = get_post_meta( $post->ID, self::POST_META_KEY, true );
Note: See TracChangeset for help on using the changeset viewer.