Changeset 3337083
- Timestamp:
- 07/31/2025 09:05:42 AM (7 months ago)
- Location:
- lockee
- Files:
-
- 6 deleted
- 3 edited
- 44 copied
-
tags/3.1.7 (copied) (copied from lockee/trunk)
-
tags/3.1.7/build (copied) (copied from lockee/trunk/build)
-
tags/3.1.7/build/lock-rtl.css (copied) (copied from lockee/trunk/build/lock-rtl.css)
-
tags/3.1.7/build/lock.asset.php (copied) (copied from lockee/trunk/build/lock.asset.php)
-
tags/3.1.7/build/lock.css (copied) (copied from lockee/trunk/build/lock.css)
-
tags/3.1.7/build/lock.js (copied) (copied from lockee/trunk/build/lock.js)
-
tags/3.1.7/build/lockee-block/block.json (copied) (copied from lockee/trunk/build/lockee-block/block.json)
-
tags/3.1.7/build/lockee-block/index-rtl.css (copied) (copied from lockee/trunk/build/lockee-block/index-rtl.css)
-
tags/3.1.7/build/lockee-block/index.asset.php (copied) (copied from lockee/trunk/build/lockee-block/index.asset.php)
-
tags/3.1.7/build/lockee-block/index.css (copied) (copied from lockee/trunk/build/lockee-block/index.css)
-
tags/3.1.7/build/lockee-block/index.js (copied) (copied from lockee/trunk/build/lockee-block/index.js)
-
tags/3.1.7/css/lockee.min.css (copied) (copied from lockee/trunk/css/lockee.min.css)
-
tags/3.1.7/images/icon.svg (copied) (copied from lockee/trunk/images/icon.svg)
-
tags/3.1.7/inc (copied) (copied from lockee/trunk/inc)
-
tags/3.1.7/inc/class-lockee-activator.php (copied) (copied from lockee/trunk/inc/class-lockee-activator.php)
-
tags/3.1.7/inc/class-lockee-ajax.php (copied) (copied from lockee/trunk/inc/class-lockee-ajax.php)
-
tags/3.1.7/inc/class-lockee-assets.php (copied) (copied from lockee/trunk/inc/class-lockee-assets.php)
-
tags/3.1.7/inc/class-lockee-block.php (copied) (copied from lockee/trunk/inc/class-lockee-block.php)
-
tags/3.1.7/inc/class-lockee-content.php (copied) (copied from lockee/trunk/inc/class-lockee-content.php)
-
tags/3.1.7/inc/class-lockee-core.php (copied) (copied from lockee/trunk/inc/class-lockee-core.php)
-
tags/3.1.7/inc/class-lockee-hooks.php (copied) (copied from lockee/trunk/inc/class-lockee-hooks.php)
-
tags/3.1.7/inc/class-lockee-iframe.php (copied) (copied from lockee/trunk/inc/class-lockee-iframe.php)
-
tags/3.1.7/inc/class-lockee-metabox.php (copied) (copied from lockee/trunk/inc/class-lockee-metabox.php) (2 diffs)
-
tags/3.1.7/inc/class-lockee-migration.php (copied) (copied from lockee/trunk/inc/class-lockee-migration.php)
-
tags/3.1.7/inc/class-lockee-post-types.php (copied) (copied from lockee/trunk/inc/class-lockee-post-types.php)
-
tags/3.1.7/inc/class-lockee-settings.php (copied) (copied from lockee/trunk/inc/class-lockee-settings.php)
-
tags/3.1.7/inc/class-lockee-shortcode.php (copied) (copied from lockee/trunk/inc/class-lockee-shortcode.php)
-
tags/3.1.7/inc/class-lockee-update.php (copied) (copied from lockee/trunk/inc/class-lockee-update.php)
-
tags/3.1.7/inc/class-lockee-utils.php (copied) (copied from lockee/trunk/inc/class-lockee-utils.php)
-
tags/3.1.7/js (copied) (copied from lockee/trunk/js)
-
tags/3.1.7/js/migration.js (copied) (copied from lockee/trunk/js/migration.js)
-
tags/3.1.7/js/theme.min.js (copied) (copied from lockee/trunk/js/theme.min.js)
-
tags/3.1.7/languages (copied) (copied from lockee/trunk/languages)
-
tags/3.1.7/languages/lockee-es-e782ec0b24281283c485ed54547ed623.json (deleted)
-
tags/3.1.7/languages/lockee-es.mo (deleted)
-
tags/3.1.7/languages/lockee-es.po (deleted)
-
tags/3.1.7/languages/lockee-es_ES-e782ec0b24281283c485ed54547ed623.json (copied) (copied from lockee/trunk/languages/lockee-es_ES-e782ec0b24281283c485ed54547ed623.json)
-
tags/3.1.7/languages/lockee-es_ES.mo (copied) (copied from lockee/trunk/languages/lockee-es_ES.mo)
-
tags/3.1.7/languages/lockee-es_ES.po (copied) (copied from lockee/trunk/languages/lockee-es_ES.po)
-
tags/3.1.7/languages/lockee-fr_FR-e782ec0b24281283c485ed54547ed623.json (copied) (copied from lockee/trunk/languages/lockee-fr_FR-e782ec0b24281283c485ed54547ed623.json)
-
tags/3.1.7/languages/lockee-fr_FR.mo (copied) (copied from lockee/trunk/languages/lockee-fr_FR.mo)
-
tags/3.1.7/languages/lockee-fr_FR.po (copied) (copied from lockee/trunk/languages/lockee-fr_FR.po)
-
tags/3.1.7/languages/lockee.pot (copied) (copied from lockee/trunk/languages/lockee.pot)
-
tags/3.1.7/locales (deleted)
-
tags/3.1.7/lock-1.5.45.min.css (deleted)
-
tags/3.1.7/lock-1.5.45.min.js (deleted)
-
tags/3.1.7/lockee.php (copied) (copied from lockee/trunk/lockee.php) (2 diffs)
-
tags/3.1.7/readme.txt (copied) (copied from lockee/trunk/readme.txt) (2 diffs)
-
tags/3.1.7/templates (copied) (copied from lockee/trunk/templates)
-
tags/3.1.7/templates/iframe.php (copied) (copied from lockee/trunk/templates/iframe.php)
-
trunk/inc/class-lockee-metabox.php (modified) (2 diffs)
-
trunk/lockee.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lockee/tags/3.1.7/inc/class-lockee-metabox.php
r3313999 r3337083 92 92 $post = get_post($post_id); 93 93 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']) : ''; 95 95 update_post_meta($post_id, 'lockee_content', $lockee_content); 96 96 } else { … … 217 217 return !empty($lock_code) ? explode("<OR>", $lock_code) : []; 218 218 } 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 } 219 241 } -
lockee/tags/3.1.7/lockee.php
r3317012 r3337083 5 5 * Plugin URI: https://wordpress.lockee.fr/ 6 6 * 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. 67 * Version: 3.1.7 8 8 * Author: Nicolas Desmarets 9 9 * Author URI: https://ndev.fr/ … … 18 18 } 19 19 20 define('LOCKEE_VERSION', '3.1. 6');20 define('LOCKEE_VERSION', '3.1.7'); 21 21 22 22 require_once plugin_dir_path(__FILE__) . 'inc/class-lockee-singleton.php'; -
lockee/tags/3.1.7/readme.txt
r3317012 r3337083 5 5 Requires at least: 5.3 6 6 Tested up to: 6.8.1 7 Stable tag: 3.1. 67 Stable tag: 3.1.7 8 8 Requires PHP: 7.0 9 9 License: GPLv2 or later … … 13 13 14 14 == 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. 15 18 16 19 = 3.1.6 = -
lockee/trunk/inc/class-lockee-metabox.php
r3313999 r3337083 92 92 $post = get_post($post_id); 93 93 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']) : ''; 95 95 update_post_meta($post_id, 'lockee_content', $lockee_content); 96 96 } else { … … 217 217 return !empty($lock_code) ? explode("<OR>", $lock_code) : []; 218 218 } 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 } 219 241 } -
lockee/trunk/lockee.php
r3317012 r3337083 5 5 * Plugin URI: https://wordpress.lockee.fr/ 6 6 * 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. 67 * Version: 3.1.7 8 8 * Author: Nicolas Desmarets 9 9 * Author URI: https://ndev.fr/ … … 18 18 } 19 19 20 define('LOCKEE_VERSION', '3.1. 6');20 define('LOCKEE_VERSION', '3.1.7'); 21 21 22 22 require_once plugin_dir_path(__FILE__) . 'inc/class-lockee-singleton.php'; -
lockee/trunk/readme.txt
r3317012 r3337083 5 5 Requires at least: 5.3 6 6 Tested up to: 6.8.1 7 Stable tag: 3.1. 67 Stable tag: 3.1.7 8 8 Requires PHP: 7.0 9 9 License: GPLv2 or later … … 13 13 14 14 == 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. 15 18 16 19 = 3.1.6 =
Note: See TracChangeset
for help on using the changeset viewer.