Changeset 3386814
- Timestamp:
- 10/30/2025 05:31:38 AM (5 months ago)
- Location:
- nazy-load
- Files:
-
- 24 added
- 4 edited
-
tags/2.4.15 (added)
-
tags/2.4.15/flying-images.php (added)
-
tags/2.4.15/html-rewrite.php (added)
-
tags/2.4.15/init-config.php (added)
-
tags/2.4.15/inject-js.php (added)
-
tags/2.4.15/lazy-load.source.js (added)
-
tags/2.4.15/lib (added)
-
tags/2.4.15/lib/dom-parser.php (added)
-
tags/2.4.15/lib/w3tc-bridge.php (added)
-
tags/2.4.15/lib/wpfc-bridge.php (added)
-
tags/2.4.15/readme.txt (added)
-
tags/2.4.15/resource-hints.php (added)
-
tags/2.4.15/settings (added)
-
tags/2.4.15/settings/cdn.php (added)
-
tags/2.4.15/settings/compression.php (added)
-
tags/2.4.15/settings/faq.php (added)
-
tags/2.4.15/settings/index.php (added)
-
tags/2.4.15/settings/lazyload.php (added)
-
tags/2.4.15/settings/optimize-more.php (added)
-
tags/2.4.15/settings/responsiveness.php (added)
-
tags/2.4.15/settings/settings.php (added)
-
tags/2.4.15/settings/support.php (added)
-
tags/2.4.15/settings/webp.php (added)
-
tags/2.4.15/shortcuts.php (added)
-
trunk/flying-images.php (modified) (2 diffs)
-
trunk/inject-js.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/settings/lazyload.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
nazy-load/trunk/flying-images.php
r3272496 r3386814 6 6 * Author: WP Speed Matters 7 7 * Author URI: https://wpspeedmatters.com/ 8 * Version: 2.4.1 48 * Version: 2.4.15 9 9 * Text Domain: nazy-load 10 10 */ … … 17 17 // Define constant with current version 18 18 if (!defined('FLYING_IMAGES_VERSION')) { 19 define('FLYING_IMAGES_VERSION', '2.4.1 4');19 define('FLYING_IMAGES_VERSION', '2.4.15'); 20 20 } 21 21 -
nazy-load/trunk/inject-js.php
r2729024 r3386814 4 4 function flying_images_inject_js() { 5 5 6 if (get_option('flying_images_enable_lazyloading') != true) return; 7 6 8 $lazy_method = esc_attr(get_option('flying_images_lazymethod')); 7 $lazy_margin = esc_attr(get_option('flying_images_margin'));9 $lazy_margin = absint( get_option( 'flying_images_margin', 0 ) ); 8 10 9 if (get_option('flying_images_enable_lazyloading') != true) return;10 11 11 12 ?> -
nazy-load/trunk/readme.txt
r3272488 r3386814 7 7 Tested up to: 6.8 8 8 Requires PHP: 5.6 9 Stable tag: 2.4.1 49 Stable tag: 2.4.15 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 62 62 63 63 == Changelog == 64 65 = 2.4.15 = 66 - Improved validation for the admin-only lazyload margin option. 64 67 65 68 = 2.4.14 = -
nazy-load/trunk/settings/lazyload.php
r2729024 r3386814 5 5 update_option('flying_images_enable_lazyloading', sanitize_text_field($_POST['enable_lazyloading'])); 6 6 update_option('flying_images_lazymethod', sanitize_text_field($_POST['lazymethod'])); 7 update_option('flying_images_margin', sanitize_text_field($_POST['margin'])); 7 8 $margin = isset($_POST['margin']) ? absint($_POST['margin']) : 0; 9 update_option('flying_images_margin', $margin); 10 8 11 $keywords = trim($_POST['exclude_keywords']) ? array_map('trim', explode("\n", str_replace("\r", "", sanitize_textarea_field($_POST['exclude_keywords'])))) : []; 9 12 update_option('flying_images_exclude_keywords', $keywords);
Note: See TracChangeset
for help on using the changeset viewer.