Plugin Directory

Changeset 3337083


Ignore:
Timestamp:
07/31/2025 09:05:42 AM (7 months ago)
Author:
ndevfr
Message:

Mise à jour du plugin Lockee à la version 3.1.7

Location:
lockee
Files:
6 deleted
3 edited
44 copied

Legend:

Unmodified
Added
Removed
  • lockee/tags/3.1.7/inc/class-lockee-metabox.php

    r3313999 r3337083  
    9292    $post = get_post($post_id);
    9393    if ($post->post_type != 'lockee_lock') {
    94       $lockee_content = isset($_POST['lockee_content']) ? wp_kses_post($_POST['lockee_content']) : '';
     94      $lockee_content = isset($_POST['lockee_content']) ? $this->my_wp_kses_post($_POST['lockee_content']) : '';
    9595      update_post_meta($post_id, 'lockee_content', $lockee_content);
    9696    } else {
     
    217217    return !empty($lock_code) ? explode("<OR>", $lock_code) : [];
    218218  }
     219
     220  /**
     221   * Filter not allowed HTML tags in the content
     222   */
     223  private function my_wp_kses_post($content)
     224  {
     225    $allowed_tags = wp_kses_allowed_html('post');
     226    $allowed_tags['iframe'] = [
     227      'src' => [],
     228      'width' => [],
     229      'height' => [],
     230      'style' => [],
     231      'frameborder' => [],
     232      'allowfullscreen' => [],
     233      'scrolling' => [],
     234      'title' => [],
     235      'type' => [],
     236      'allowscriptaccess' => [],
     237      'allownetworking' => [],
     238    ];
     239    return wp_kses($content, $allowed_tags);
     240  }
    219241}
  • lockee/tags/3.1.7/lockee.php

    r3317012 r3337083  
    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.6
     7 * Version:           3.1.7
    88 * Author:            Nicolas Desmarets
    99 * Author URI:        https://ndev.fr/
     
    1818}
    1919
    20 define('LOCKEE_VERSION', '3.1.6');
     20define('LOCKEE_VERSION', '3.1.7');
    2121
    2222require_once plugin_dir_path(__FILE__) . 'inc/class-lockee-singleton.php';
  • lockee/tags/3.1.7/readme.txt

    r3317012 r3337083  
    55Requires at least: 5.3
    66Tested up to: 6.8.1
    7 Stable tag: 3.1.6
     7Stable tag: 3.1.7
    88Requires PHP: 7.0
    99License: GPLv2 or later
     
    1313
    1414== Changelog ==
     15
     16= 3.1.7 =
     17* Removed iframe tags filtering in "lockee_content" to allow again the use of iframes in the lock content.
    1518
    1619= 3.1.6 =
  • lockee/trunk/inc/class-lockee-metabox.php

    r3313999 r3337083  
    9292    $post = get_post($post_id);
    9393    if ($post->post_type != 'lockee_lock') {
    94       $lockee_content = isset($_POST['lockee_content']) ? wp_kses_post($_POST['lockee_content']) : '';
     94      $lockee_content = isset($_POST['lockee_content']) ? $this->my_wp_kses_post($_POST['lockee_content']) : '';
    9595      update_post_meta($post_id, 'lockee_content', $lockee_content);
    9696    } else {
     
    217217    return !empty($lock_code) ? explode("<OR>", $lock_code) : [];
    218218  }
     219
     220  /**
     221   * Filter not allowed HTML tags in the content
     222   */
     223  private function my_wp_kses_post($content)
     224  {
     225    $allowed_tags = wp_kses_allowed_html('post');
     226    $allowed_tags['iframe'] = [
     227      'src' => [],
     228      'width' => [],
     229      'height' => [],
     230      'style' => [],
     231      'frameborder' => [],
     232      'allowfullscreen' => [],
     233      'scrolling' => [],
     234      'title' => [],
     235      'type' => [],
     236      'allowscriptaccess' => [],
     237      'allownetworking' => [],
     238    ];
     239    return wp_kses($content, $allowed_tags);
     240  }
    219241}
  • lockee/trunk/lockee.php

    r3317012 r3337083  
    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.6
     7 * Version:           3.1.7
    88 * Author:            Nicolas Desmarets
    99 * Author URI:        https://ndev.fr/
     
    1818}
    1919
    20 define('LOCKEE_VERSION', '3.1.6');
     20define('LOCKEE_VERSION', '3.1.7');
    2121
    2222require_once plugin_dir_path(__FILE__) . 'inc/class-lockee-singleton.php';
  • lockee/trunk/readme.txt

    r3317012 r3337083  
    55Requires at least: 5.3
    66Tested up to: 6.8.1
    7 Stable tag: 3.1.6
     7Stable tag: 3.1.7
    88Requires PHP: 7.0
    99License: GPLv2 or later
     
    1313
    1414== Changelog ==
     15
     16= 3.1.7 =
     17* Removed iframe tags filtering in "lockee_content" to allow again the use of iframes in the lock content.
    1518
    1619= 3.1.6 =
Note: See TracChangeset for help on using the changeset viewer.