Plugin Directory

Changeset 2580247


Ignore:
Timestamp:
08/09/2021 09:40:07 AM (5 years ago)
Author:
john1302
Message:

get_home_path func replace by ABSPATH const

Location:
wp-lozad/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-lozad/trunk/classes/ContentProcessing.php

    r2565784 r2580247  
    180180                    }
    181181                    $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))) {
    183183                        $replaceHtmlTag = preg_replace('/<(.*)>/is', '<$1 data-background-image-set="url(\'' . $bgImg . '\') 1x, url(\'' . $bg2xImg . '\') 2x">', $replaceHtmlTag);
    184184                    } else {
  • wp-lozad/trunk/lozad.php

    r2565784 r2580247  
    44Description: lazy loading of images by baroda algorithm
    55Author: Evgeniy Kozenok
    6 Version: 1.4.8
     6Version: 1.4.9
    77*/
    88
  • wp-lozad/trunk/readme.txt

    r2565784 r2580247  
    44Requires at least: 5.0
    55Tested up to: 5.5
    6 Stable tag: 1.4.8
     6Stable tag: 1.4.9
    77License: GPL2
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    2424
    2525== Changelog ==
     26= 1.4.9 =
     27* 2021-08-09: get_home_path func replace by ABSPATH const
     28
    2629= 1.4.8 =
    2730* 2021-07-16: Check is exist image 2x for background 2x
Note: See TracChangeset for help on using the changeset viewer.