Plugin Directory

Changeset 3314014


Ignore:
Timestamp:
06/18/2025 04:20:35 PM (9 months ago)
Author:
ndevfr
Message:

Update Lockee Plugin to 3.1.1

Location:
lockee
Files:
3 deleted
4 edited
44 copied

Legend:

Unmodified
Added
Removed
  • lockee/tags/3.1.1/inc/class-lockee-ajax.php

    r3313999 r3314014  
    3232    } else {
    3333      $post_content = get_post_meta($id, 'lockee_content', true);
     34      if (empty($post_content)) {
     35        $post_content = apply_filters('the_content', get_post_field('post_content', $id));
     36      }
    3437    }
    3538
  • lockee/tags/3.1.1/inc/class-lockee-content.php

    r3308343 r3314014  
    2525    $lockee_type = get_post_meta($id, 'lockee_type', true);
    2626    $lockee_code = get_post_meta($id, 'lockee_code', true);
     27    $lockee_content = get_post_meta($id, 'lockee_content', true);
    2728
    2829    if (empty($lockee_type) || empty($lockee_code)) {
     
    3435    $lock = Lockee_Utils::generateLock('open', $id, $lockee_type, '', $lockee_options);
    3536
    36     if ($post->post_type == 'lockee_lock') {
     37    if ($post->post_type == 'lockee_lock' || empty($lockee_content)) {
    3738      return $lock;
    3839    }
    39 
    4040    return $content . $lock;
    4141  }
  • lockee/tags/3.1.1/lockee.php

    r3313999 r3314014  
    55 * Plugin URI:        https://wordpress.lockee.fr/
    66 * Description:       Add Lockee locks to your WordPress site to gamify your content and engage your visitors in a completely autonomous way.
    7  * Version:           3.1.0
     7 * Version:           3.1.1
    88 * Author:            Nicolas Desmarets
    99 * Author URI:        https://ndev.fr/
     
    1818}
    1919
    20 define('LOCKEE_VERSION', '3.1.0');
     20define('LOCKEE_VERSION', '3.1.1');
    2121
    2222require_once plugin_dir_path(__FILE__) . 'inc/class-lockee-singleton.php';
  • lockee/tags/3.1.1/readme.txt

    r3313999 r3314014  
    55Requires at least: 5.3
    66Tested up to: 6.8.1
    7 Stable tag: 3.1.0
     7Stable tag: 3.1.1
    88Requires PHP: 7.0
    99License: GPLv2 or later
     
    1313
    1414== Changelog ==
     15
     16= 3.1.1 =
     17* In posts and pages, if lockee_content is empty, the post content is used instead (to keep compatibility with the oldest lock format).
    1518
    1619= 3.1.0 =
  • lockee/trunk/inc/class-lockee-ajax.php

    r3313999 r3314014  
    3232    } else {
    3333      $post_content = get_post_meta($id, 'lockee_content', true);
     34      if (empty($post_content)) {
     35        $post_content = apply_filters('the_content', get_post_field('post_content', $id));
     36      }
    3437    }
    3538
  • lockee/trunk/inc/class-lockee-content.php

    r3308343 r3314014  
    2525    $lockee_type = get_post_meta($id, 'lockee_type', true);
    2626    $lockee_code = get_post_meta($id, 'lockee_code', true);
     27    $lockee_content = get_post_meta($id, 'lockee_content', true);
    2728
    2829    if (empty($lockee_type) || empty($lockee_code)) {
     
    3435    $lock = Lockee_Utils::generateLock('open', $id, $lockee_type, '', $lockee_options);
    3536
    36     if ($post->post_type == 'lockee_lock') {
     37    if ($post->post_type == 'lockee_lock' || empty($lockee_content)) {
    3738      return $lock;
    3839    }
    39 
    4040    return $content . $lock;
    4141  }
  • lockee/trunk/lockee.php

    r3313999 r3314014  
    55 * Plugin URI:        https://wordpress.lockee.fr/
    66 * Description:       Add Lockee locks to your WordPress site to gamify your content and engage your visitors in a completely autonomous way.
    7  * Version:           3.1.0
     7 * Version:           3.1.1
    88 * Author:            Nicolas Desmarets
    99 * Author URI:        https://ndev.fr/
     
    1818}
    1919
    20 define('LOCKEE_VERSION', '3.1.0');
     20define('LOCKEE_VERSION', '3.1.1');
    2121
    2222require_once plugin_dir_path(__FILE__) . 'inc/class-lockee-singleton.php';
  • lockee/trunk/readme.txt

    r3313999 r3314014  
    55Requires at least: 5.3
    66Tested up to: 6.8.1
    7 Stable tag: 3.1.0
     7Stable tag: 3.1.1
    88Requires PHP: 7.0
    99License: GPLv2 or later
     
    1313
    1414== Changelog ==
     15
     16= 3.1.1 =
     17* In posts and pages, if lockee_content is empty, the post content is used instead (to keep compatibility with the oldest lock format).
    1518
    1619= 3.1.0 =
Note: See TracChangeset for help on using the changeset viewer.