Changeset 2580247
- Timestamp:
- 08/09/2021 09:40:07 AM (5 years ago)
- Location:
- wp-lozad/trunk
- Files:
-
- 3 edited
-
classes/ContentProcessing.php (modified) (1 diff)
-
lozad.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-lozad/trunk/classes/ContentProcessing.php
r2565784 r2580247 180 180 } 181 181 $bg2xImg = preg_replace("/\.$ext/", "@2x.$ext", $bgImg); 182 if (file_exists(str_replace(trim(site_url(), '/') . '/', get_home_path(), $bg2xImg))) {182 if (file_exists(str_replace(trim(site_url(), '/') . '/', ABSPATH, $bg2xImg))) { 183 183 $replaceHtmlTag = preg_replace('/<(.*)>/is', '<$1 data-background-image-set="url(\'' . $bgImg . '\') 1x, url(\'' . $bg2xImg . '\') 2x">', $replaceHtmlTag); 184 184 } else { -
wp-lozad/trunk/lozad.php
r2565784 r2580247 4 4 Description: lazy loading of images by baroda algorithm 5 5 Author: Evgeniy Kozenok 6 Version: 1.4. 86 Version: 1.4.9 7 7 */ 8 8 -
wp-lozad/trunk/readme.txt
r2565784 r2580247 4 4 Requires at least: 5.0 5 5 Tested up to: 5.5 6 Stable tag: 1.4. 86 Stable tag: 1.4.9 7 7 License: GPL2 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 24 24 25 25 == Changelog == 26 = 1.4.9 = 27 * 2021-08-09: get_home_path func replace by ABSPATH const 28 26 29 = 1.4.8 = 27 30 * 2021-07-16: Check is exist image 2x for background 2x
Note: See TracChangeset
for help on using the changeset viewer.