Plugin Directory

Changeset 3079140


Ignore:
Timestamp:
04/30/2024 07:15:21 AM (11 months ago)
Author:
markussesamy
Message:

Update to version 2.0.7 from GitHub

Location:
sesamy
Files:
12 edited
1 copied

Legend:

Unmodified
Added
Removed
  • sesamy/tags/2.0.7/README.txt

    r3078700 r3079140  
    55Requires PHP: 7.4
    66Tested up to: 6.4.2
    7 Stable tag: 2.0.6
     7Stable tag: 2.0.7
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    103103== Changelog ==
    104104
     105= 2.0.7 =
     106* Fix to always display the content for "None" lock mode
     107
    105108= 2.0.6 =
    106 * Fix to display content if "Locked Content" for "Event" and "Signed URL" lock modes
     109* Fix to display the content if "Locked Content" is false for "Event" and "Signed URL" lock modes
    107110
    108111= 2.0.5 =
     
    110113
    111114= 2.0.4 =
    112 * Fix to display the content in "Public" access for "Event" and "Signed URL" lock modes
     115* Fix to display the content in "Public" access level for "Event" and "Signed URL" lock modes
    113116* Fix to hide the paywall if the content is public
    114117
  • sesamy/tags/2.0.7/public/class-sesamy-content-container.php

    r3077290 r3079140  
    7676        $paywall_seo     = apply_filters( 'sesamy_paywall_seo', $this->show_seo_paywall_data( $post ), $post );
    7777
     78        $lock_mode = get_option( 'sesamy_lock_mode' );
     79
    7880        // Check if the post is unlocked or if the access level is public. If so, only return the content container.
    79         if ( ! $is_locked || $access_level == 'public') {
     81        $is_public = !$is_locked || $access_level === 'public' || $lock_mode === 'none';
     82        if ( $is_public ) {
    8083            return $paywall_seo . get_sesamy_content_container( $atts, $content );
    8184        }
  • sesamy/tags/2.0.7/public/sesamy-global-functions.php

    r3078700 r3079140  
    7878    );
    7979
    80     // If the article isn't locked, then add the "public" attribute to the container.
    81     if ( ! Sesamy_Post_Properties::is_locked( $post_id ) || $access_level == 'public') {
     80    // If the article is in lock mode None, it's not locked or it has access level public, treat it as embed and public.
     81    $is_public = $atts['lock_mode'] === 'none' || !Sesamy_Post_Properties::is_locked( $post_id ) || $access_level === 'public';
     82    if ( $is_public ) {
     83        $atts['lock_mode'] = 'embed';
    8284        $atts['public'] = 'true';
    8385    }
     
    8991
    9092    // Only the 'entitlement' access level is supported to use with the 'signedUrl' and 'event' lock modes.
    91     // If the content is public or the access level is not 'entitlement', we change the lock mode to 'embed', so that the content unlocks correctly.
    92     if ( ( 'signedUrl' === $atts['lock_mode'] || 'event' === $atts['lock_mode'] ) && ( isset( $atts['public'] ) || $access_level != 'entitlement' ) ) {
     93    // If the content is not 'entitlement', we change the lock mode to 'embed', so that the content unlocks correctly.
     94    if ( ( 'signedUrl' === $atts['lock_mode'] || 'event' === $atts['lock_mode'] ) && $access_level != 'entitlement' ) {
    9395        $atts['lock_mode'] = 'embed';
    9496    }
  • sesamy/tags/2.0.7/sesamy.php

    r3078700 r3079140  
    1616 * Plugin URI:        https://sesamy.com
    1717 * Description:       Add paywall functionality with Sesamy (sesamy.com) to your WordPress website.
    18  * Version:           2.0.6
     18 * Version:           2.0.7
    1919 * Author:            Sesamy AB
    2020 * Author URI:        https://sesamy.com
     
    3535 * Rename this for your plugin and update it as you release new versions.
    3636 */
    37 define( 'SESAMY_VERSION', '2.0.6' );
     37define( 'SESAMY_VERSION', '2.0.7' );
    3838
    3939/**
  • sesamy/tags/2.0.7/vendor/composer/installed.php

    r3078700 r3079140  
    22    'root' => array(
    33        'name' => '__root__',
    4         'pretty_version' => '2.0.6',
    5         'version' => '2.0.6.0',
    6         'reference' => 'bd34f8a0cd6760511fef9701e9f60d9212d94d0d',
     4        'pretty_version' => '2.0.7',
     5        'version' => '2.0.7.0',
     6        'reference' => 'baf442e77023ccc8bab3588f8cb281b13412319b',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        '__root__' => array(
    14             'pretty_version' => '2.0.6',
    15             'version' => '2.0.6.0',
    16             'reference' => 'bd34f8a0cd6760511fef9701e9f60d9212d94d0d',
     14            'pretty_version' => '2.0.7',
     15            'version' => '2.0.7.0',
     16            'reference' => 'baf442e77023ccc8bab3588f8cb281b13412319b',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
  • sesamy/tags/2.0.7/version.php

    r3078700 r3079140  
    99 */
    1010
    11 define( 'SESAMY_VERSION', '2.0.6' );
     11define( 'SESAMY_VERSION', '2.0.7' );
  • sesamy/trunk/README.txt

    r3078700 r3079140  
    55Requires PHP: 7.4
    66Tested up to: 6.4.2
    7 Stable tag: 2.0.6
     7Stable tag: 2.0.7
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    103103== Changelog ==
    104104
     105= 2.0.7 =
     106* Fix to always display the content for "None" lock mode
     107
    105108= 2.0.6 =
    106 * Fix to display content if "Locked Content" for "Event" and "Signed URL" lock modes
     109* Fix to display the content if "Locked Content" is false for "Event" and "Signed URL" lock modes
    107110
    108111= 2.0.5 =
     
    110113
    111114= 2.0.4 =
    112 * Fix to display the content in "Public" access for "Event" and "Signed URL" lock modes
     115* Fix to display the content in "Public" access level for "Event" and "Signed URL" lock modes
    113116* Fix to hide the paywall if the content is public
    114117
  • sesamy/trunk/public/class-sesamy-content-container.php

    r3077290 r3079140  
    7676        $paywall_seo     = apply_filters( 'sesamy_paywall_seo', $this->show_seo_paywall_data( $post ), $post );
    7777
     78        $lock_mode = get_option( 'sesamy_lock_mode' );
     79
    7880        // Check if the post is unlocked or if the access level is public. If so, only return the content container.
    79         if ( ! $is_locked || $access_level == 'public') {
     81        $is_public = !$is_locked || $access_level === 'public' || $lock_mode === 'none';
     82        if ( $is_public ) {
    8083            return $paywall_seo . get_sesamy_content_container( $atts, $content );
    8184        }
  • sesamy/trunk/public/sesamy-global-functions.php

    r3078700 r3079140  
    7878    );
    7979
    80     // If the article isn't locked, then add the "public" attribute to the container.
    81     if ( ! Sesamy_Post_Properties::is_locked( $post_id ) || $access_level == 'public') {
     80    // If the article is in lock mode None, it's not locked or it has access level public, treat it as embed and public.
     81    $is_public = $atts['lock_mode'] === 'none' || !Sesamy_Post_Properties::is_locked( $post_id ) || $access_level === 'public';
     82    if ( $is_public ) {
     83        $atts['lock_mode'] = 'embed';
    8284        $atts['public'] = 'true';
    8385    }
     
    8991
    9092    // Only the 'entitlement' access level is supported to use with the 'signedUrl' and 'event' lock modes.
    91     // If the content is public or the access level is not 'entitlement', we change the lock mode to 'embed', so that the content unlocks correctly.
    92     if ( ( 'signedUrl' === $atts['lock_mode'] || 'event' === $atts['lock_mode'] ) && ( isset( $atts['public'] ) || $access_level != 'entitlement' ) ) {
     93    // If the content is not 'entitlement', we change the lock mode to 'embed', so that the content unlocks correctly.
     94    if ( ( 'signedUrl' === $atts['lock_mode'] || 'event' === $atts['lock_mode'] ) && $access_level != 'entitlement' ) {
    9395        $atts['lock_mode'] = 'embed';
    9496    }
  • sesamy/trunk/sesamy.php

    r3078700 r3079140  
    1616 * Plugin URI:        https://sesamy.com
    1717 * Description:       Add paywall functionality with Sesamy (sesamy.com) to your WordPress website.
    18  * Version:           2.0.6
     18 * Version:           2.0.7
    1919 * Author:            Sesamy AB
    2020 * Author URI:        https://sesamy.com
     
    3535 * Rename this for your plugin and update it as you release new versions.
    3636 */
    37 define( 'SESAMY_VERSION', '2.0.6' );
     37define( 'SESAMY_VERSION', '2.0.7' );
    3838
    3939/**
  • sesamy/trunk/vendor/composer/installed.php

    r3078700 r3079140  
    22    'root' => array(
    33        'name' => '__root__',
    4         'pretty_version' => '2.0.6',
    5         'version' => '2.0.6.0',
    6         'reference' => 'bd34f8a0cd6760511fef9701e9f60d9212d94d0d',
     4        'pretty_version' => '2.0.7',
     5        'version' => '2.0.7.0',
     6        'reference' => 'baf442e77023ccc8bab3588f8cb281b13412319b',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        '__root__' => array(
    14             'pretty_version' => '2.0.6',
    15             'version' => '2.0.6.0',
    16             'reference' => 'bd34f8a0cd6760511fef9701e9f60d9212d94d0d',
     14            'pretty_version' => '2.0.7',
     15            'version' => '2.0.7.0',
     16            'reference' => 'baf442e77023ccc8bab3588f8cb281b13412319b',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
  • sesamy/trunk/version.php

    r3078700 r3079140  
    99 */
    1010
    11 define( 'SESAMY_VERSION', '2.0.6' );
     11define( 'SESAMY_VERSION', '2.0.7' );
Note: See TracChangeset for help on using the changeset viewer.