Plugin Directory

Changeset 3440516


Ignore:
Timestamp:
01/15/2026 04:19:20 PM (3 months ago)
Author:
hostspa
Message:

Fix some php warning

Location:
fastcache-by-host-it
Files:
10 edited
5 copied

Legend:

Unmodified
Added
Removed
  • fastcache-by-host-it/tags/1.5.9/README.txt

    r3440400 r3440516  
    55Tested up to: 6.9.0
    66Requires PHP: 8.0
    7 Stable Tag: 1.5.8
     7Stable Tag: 1.5.9
    88License: GPL-2.0+
    99License URI: http://www.gnu.org/licenses/gpl-2.0.txt
     
    132132
    133133== Changelog ==
     1341.5.9
     135Fix Some php warning
     136
    1341371.5.8
    135138Fix for default ttl
  • fastcache-by-host-it/tags/1.5.9/fastcache.php

    r3440400 r3440516  
    1717 * Plugin URI:        https://fastcache.host.it/wordpress/
    1818 * Description:       Abilita il tuo sito Wordpress alla prima vera CDN realizzata PER Wordpress e configurata AD-HOC per il tuo sito. Il massimo della velocità senza difficoltà di setup.
    19  * Version:           1.5.8
     19 * Version:           1.5.9
    2020 * Author:            Host.it and JExtensions Store - Alessandro Poletto
    2121 * Author URI:        https://fastcache.host.it/alessandropoletto/
     
    4444define ( '_WP_EXEC', '1' );
    4545define ( '_FASTCACHE_EXEC', 1 );
    46 define ( 'FASTCACHE_VERSION', '1.5.8' );
     46define ( 'FASTCACHE_VERSION', '1.5.9' );
    4747define ( 'FASTCACHE_FILE_PATH', __FILE__ );
    4848
  • fastcache-by-host-it/tags/1.5.9/src/Core/Combiner.php

    r3417545 r3440516  
    161161           
    162162            // Prevent bots response to be cached
    163             if($isBot) {
     163            if(isset($isBot)) {
    164164                $aUrl ['id'] = '';
    165165            }
  • fastcache-by-host-it/tags/1.5.9/src/Core/Html/Callbacks/CombineJsCss.php

    r3420501 r3440516  
    7979        );
    8080        $defaultExcludesBottom = array( '.com/recaptcha/api' );
    81         if($isBot) {
     81        if(isset($isBot)) {
    8282            $defaultExcludesAlways = array();
    8383            $defaultExcludesBottom = array();
  • fastcache-by-host-it/tags/1.5.9/src/Core/Html/Callbacks/LazyLoad.php

    r3417545 r3440516  
    5959            $aMatches = \FastCache\Core\Webp::convert( $this, $aMatches );
    6060        }
    61 
    62         $sFullMatch         = @$aMatches[0] ?: false;
    63         $sElementName       = @$aMatches[1] ?: false;
    64         $sClassAttribute    = @$aMatches[2] ?: false;
    65         $sClassDelimiter    = @$aMatches[3] ?: false;
    66         $sClassValue        = @$aMatches[4] ?: false;
    67         $sSrcAttribute      = $sPosterAttribute = $sInnerContent = $sStyleAttribute = @$aMatches[5] ?: false;
    68         $sSrcDelimiter      = $sPosterDelimiter = $sStyleDelimiter = @$aMatches[6] ?: false;
    69         $sSrcValue          = $sPosterValue = $sBgDeclaration = @$aMatches[7] ?: false;
    70         $sSrcsetAttribute   = $sPreloadAttribute = $sCssUrl = @$aMatches[8] ?: false;
    71         $sSrcsetDelimiter   = $sPreloadDelimiter = $sCssUrlValue = @$aMatches[9] ?: false;
    72         $sSrcsetValue       = $sPreloadValue = @$aMatches[10] ?: false;
    73         $sAutoLoadAttribute = $sWidthAttribute = @$aMatches[11] ?: false;
    74         $sWidthDelimiter    = @$aMatches[12] ?: false;
    75         $sWidthValue        = @$aMatches[13] ?: 1;
    76         $sHeightAttribute   = @$aMatches[14] ?: false;
    77         $sHeightDelimiter   = @$aMatches[15] ?: false;
    78         $sHeightValue       = @$aMatches[16] ?: 1;
    79 
    80         $bLazyLoaded = false;
    81 
     61        $sFullMatch         = false;
     62        $sElementName       = false;
     63        $sClassAttribute    = false;
     64        $sClassDelimiter    = false;
     65        $sClassValue        = false;
     66        $sSrcAttribute      = false;
     67        $sPosterAttribute   = false;
     68        $sInnerContent      = false;
     69        $sStyleAttribute    = false;
     70        $sSrcDelimiter      = false;
     71        $sPosterDelimiter   = false;
     72        $sStyleDelimiter    = false;
     73        $sSrcValue          = false;
     74        $sPosterValue       = false;
     75        $sBgDeclaration     = false;
     76        $sSrcsetAttribute   = false;
     77        $sPreloadAttribute  = false;
     78        $sCssUrl            = false;
     79        $sSrcsetDelimiter   = false;
     80        $sPreloadDelimiter  = false;
     81        $sCssUrlValue       = false;
     82        $sSrcsetValue       = false;
     83        $sPreloadValue      = false;
     84        $sAutoLoadAttribute = false;
     85        $sWidthAttribute    = false;
     86        $sWidthDelimiter    = false;
     87        $sWidthValue        = 1;
     88        $sHeightAttribute   = false;
     89        $sHeightDelimiter   = false;
     90        $sHeightValue       = 1;
     91        $bLazyLoaded        = false;
     92        // $sSrcsetAttribute   = $sPreloadAttribute = $sCssUrl = @$aMatches[8] ?: false;
     93        // $sSrcsetDelimiter   = $sPreloadDelimiter = $sCssUrlValue = @$aMatches[9] ?: false;
     94        // $sSrcsetValue       = $sPreloadValue = @$aMatches[10] ?: false;
     95        // $sAutoLoadAttribute = $sWidthAttribute = @$aMatches[11] ?: false;
     96        // $sWidthDelimiter    = @$aMatches[12] ?: false;
     97        // $sHeightAttribute   = @$aMatches[14] ?: false;
     98        // $sHeightDelimiter   = @$aMatches[15] ?: false;
     99        // $sHeightValue       = @$aMatches[16] ?: 1;
     100        // $sFullMatch         = @$aMatches[0] ?: false;
     101        // $sElementName       = @$aMatches[1] ?: false;
     102        // $sClassAttribute    = @$aMatches[2] ?: false;
     103        // $sClassDelimiter    = @$aMatches[3] ?: false;
     104        // $sClassValue        = @$aMatches[4] ?: false;
     105        // $sSrcAttribute      = $sPosterAttribute = $sInnerContent = $sStyleAttribute = @$aMatches[5] ?: false;
     106        // $sSrcDelimiter      = $sPosterDelimiter = $sStyleDelimiter = @$aMatches[6] ?: false;
     107        // $sSrcValue          = $sPosterValue = $sBgDeclaration = @$aMatches[7] ?: false;
     108        // $sWidthValue        = @$aMatches[13] ?: 1;
     109        if(isset($aMatches[0])) { $sFullMatch = $aMatches[0]; }
     110        if(isset($aMatches[1])) { $sElementName = $aMatches[1]; }
     111        if(isset($aMatches[2])) { $sClassAttribute = $aMatches[2]; }
     112        if(isset($aMatches[3])) { $sClassDelimiter = $aMatches[3]; }
     113        if(isset($aMatches[4])) { $sClassValue = $aMatches[4]; }
     114        if(isset($aMatches[5])) {
     115            $sSrcAttribute = $aMatches[5];
     116            $sPosterAttribute = $aMatches[5];
     117            $sInnerContent = $aMatches[5];
     118            $sStyleAttribute = $aMatches[5];
     119        }
     120        if(isset($aMatches[6])) {
     121            $sSrcDelimiter = $aMatches[6];
     122            $sPosterDelimiter = $aMatches[6];
     123            $sStyleDelimiter= $aMatches[6];
     124        }
     125        if(isset($aMatches[7])) {
     126            $sSrcValue = $aMatches[7];
     127            $sPosterValue = $aMatches[7];
     128            $sBgDeclaration = $aMatches[7];
     129        }
     130        if(isset($aMatches[8])) {
     131            $sPreloadAttribute = $aMatches[8];
     132            $sCssUrl = $aMatches[8];
     133            $sSrcsetAttribute= $aMatches[8];
     134        }
     135        if(isset($aMatches[9])) {
     136            $sSrcsetDelimiter   = $aMatches[9];
     137            $sPreloadDelimiter = $aMatches[9];
     138            $sCssUrlValue = $aMatches[9];
     139        }
     140        if(isset($aMatches[10])) {
     141            $sSrcsetValue = $aMatches[10];
     142            $sPreloadValue = $aMatches[10];
     143        }
     144        if(isset($aMatches[11])) {
     145            $sAutoLoadAttribute = $aMatches[11];
     146            $sWidthAttribute = $aMatches[11];
     147        }
     148        if(isset($aMatches[12])) {
     149            $sWidthDelimiter = $aMatches[12];
     150        }
     151        if(isset($aMatches[13])) {
     152            $sWidthValue = $aMatches[13];
     153        }
     154        if(isset($aMatches[14])) {
     155            $sHeightAttribute = $aMatches[14];
     156        }
     157        if(isset($aMatches[15])) {
     158            $sHeightDelimiter = $aMatches[15];
     159        }
     160        if(isset($aMatches[16])) {
     161            $sHeightValue = $aMatches[16];
     162        }
    82163        //Return match if it isn't an HTML element
    83164        if ( $sElementName === false )
  • fastcache-by-host-it/tags/1.5.9/src/Core/Webp.php

    r3417545 r3440516  
    2626    public static function convert( LazyLoad $oLazyLoad, $aMatches )
    2727    {
    28         $elementName  = @$aMatches[1] ?: false;
    29         $srcValue     = @$aMatches[7] ?: false;
    30         $cssUrlValue  = @$aMatches[9] ?: false;
    31         $srcsetValue  = @$aMatches[10] ?: false;
     28        if(isset($aMatches[1])) { $elementName=$aMatches[1]; } else { $elementName=false; }
     29        if(isset($aMatches[7])) { $srcValue = $aMatches[7]; } else { $srcValue = false;}
     30        if(isset($aMatches[9])) { $cssUrlValue = $aMatches[9]; } else { $cssUrlValue = false;}
     31        if(isset($aMatches[10])) { $srcsetValue = $aMatches[10]; } else { $srcsetValue = false;}
     32       
     33        //      $elementName  = @$aMatches[1] ?: false;
     34        //      $srcValue     = @$aMatches[7] ?: false;
     35        //      $cssUrlValue  = @$aMatches[9] ?: false;
     36        //      $srcsetValue  = @$aMatches[10] ?: false;
    3237        $newFullMatch = false;
    3338
  • fastcache-by-host-it/trunk/README.txt

    r3440400 r3440516  
    55Tested up to: 6.9.0
    66Requires PHP: 8.0
    7 Stable Tag: 1.5.8
     7Stable Tag: 1.5.9
    88License: GPL-2.0+
    99License URI: http://www.gnu.org/licenses/gpl-2.0.txt
     
    132132
    133133== Changelog ==
     1341.5.9
     135Fix Some php warning
     136
    1341371.5.8
    135138Fix for default ttl
  • fastcache-by-host-it/trunk/fastcache.php

    r3440400 r3440516  
    1717 * Plugin URI:        https://fastcache.host.it/wordpress/
    1818 * Description:       Abilita il tuo sito Wordpress alla prima vera CDN realizzata PER Wordpress e configurata AD-HOC per il tuo sito. Il massimo della velocità senza difficoltà di setup.
    19  * Version:           1.5.8
     19 * Version:           1.5.9
    2020 * Author:            Host.it and JExtensions Store - Alessandro Poletto
    2121 * Author URI:        https://fastcache.host.it/alessandropoletto/
     
    4444define ( '_WP_EXEC', '1' );
    4545define ( '_FASTCACHE_EXEC', 1 );
    46 define ( 'FASTCACHE_VERSION', '1.5.8' );
     46define ( 'FASTCACHE_VERSION', '1.5.9' );
    4747define ( 'FASTCACHE_FILE_PATH', __FILE__ );
    4848
  • fastcache-by-host-it/trunk/src/Core/Combiner.php

    r3417545 r3440516  
    161161           
    162162            // Prevent bots response to be cached
    163             if($isBot) {
     163            if(isset($isBot)) {
    164164                $aUrl ['id'] = '';
    165165            }
  • fastcache-by-host-it/trunk/src/Core/Html/Callbacks/CombineJsCss.php

    r3420501 r3440516  
    7979        );
    8080        $defaultExcludesBottom = array( '.com/recaptcha/api' );
    81         if($isBot) {
     81        if(isset($isBot)) {
    8282            $defaultExcludesAlways = array();
    8383            $defaultExcludesBottom = array();
  • fastcache-by-host-it/trunk/src/Core/Html/Callbacks/LazyLoad.php

    r3417545 r3440516  
    5959            $aMatches = \FastCache\Core\Webp::convert( $this, $aMatches );
    6060        }
    61 
    62         $sFullMatch         = @$aMatches[0] ?: false;
    63         $sElementName       = @$aMatches[1] ?: false;
    64         $sClassAttribute    = @$aMatches[2] ?: false;
    65         $sClassDelimiter    = @$aMatches[3] ?: false;
    66         $sClassValue        = @$aMatches[4] ?: false;
    67         $sSrcAttribute      = $sPosterAttribute = $sInnerContent = $sStyleAttribute = @$aMatches[5] ?: false;
    68         $sSrcDelimiter      = $sPosterDelimiter = $sStyleDelimiter = @$aMatches[6] ?: false;
    69         $sSrcValue          = $sPosterValue = $sBgDeclaration = @$aMatches[7] ?: false;
    70         $sSrcsetAttribute   = $sPreloadAttribute = $sCssUrl = @$aMatches[8] ?: false;
    71         $sSrcsetDelimiter   = $sPreloadDelimiter = $sCssUrlValue = @$aMatches[9] ?: false;
    72         $sSrcsetValue       = $sPreloadValue = @$aMatches[10] ?: false;
    73         $sAutoLoadAttribute = $sWidthAttribute = @$aMatches[11] ?: false;
    74         $sWidthDelimiter    = @$aMatches[12] ?: false;
    75         $sWidthValue        = @$aMatches[13] ?: 1;
    76         $sHeightAttribute   = @$aMatches[14] ?: false;
    77         $sHeightDelimiter   = @$aMatches[15] ?: false;
    78         $sHeightValue       = @$aMatches[16] ?: 1;
    79 
    80         $bLazyLoaded = false;
    81 
     61        $sFullMatch         = false;
     62        $sElementName       = false;
     63        $sClassAttribute    = false;
     64        $sClassDelimiter    = false;
     65        $sClassValue        = false;
     66        $sSrcAttribute      = false;
     67        $sPosterAttribute   = false;
     68        $sInnerContent      = false;
     69        $sStyleAttribute    = false;
     70        $sSrcDelimiter      = false;
     71        $sPosterDelimiter   = false;
     72        $sStyleDelimiter    = false;
     73        $sSrcValue          = false;
     74        $sPosterValue       = false;
     75        $sBgDeclaration     = false;
     76        $sSrcsetAttribute   = false;
     77        $sPreloadAttribute  = false;
     78        $sCssUrl            = false;
     79        $sSrcsetDelimiter   = false;
     80        $sPreloadDelimiter  = false;
     81        $sCssUrlValue       = false;
     82        $sSrcsetValue       = false;
     83        $sPreloadValue      = false;
     84        $sAutoLoadAttribute = false;
     85        $sWidthAttribute    = false;
     86        $sWidthDelimiter    = false;
     87        $sWidthValue        = 1;
     88        $sHeightAttribute   = false;
     89        $sHeightDelimiter   = false;
     90        $sHeightValue       = 1;
     91        $bLazyLoaded        = false;
     92        // $sSrcsetAttribute   = $sPreloadAttribute = $sCssUrl = @$aMatches[8] ?: false;
     93        // $sSrcsetDelimiter   = $sPreloadDelimiter = $sCssUrlValue = @$aMatches[9] ?: false;
     94        // $sSrcsetValue       = $sPreloadValue = @$aMatches[10] ?: false;
     95        // $sAutoLoadAttribute = $sWidthAttribute = @$aMatches[11] ?: false;
     96        // $sWidthDelimiter    = @$aMatches[12] ?: false;
     97        // $sHeightAttribute   = @$aMatches[14] ?: false;
     98        // $sHeightDelimiter   = @$aMatches[15] ?: false;
     99        // $sHeightValue       = @$aMatches[16] ?: 1;
     100        // $sFullMatch         = @$aMatches[0] ?: false;
     101        // $sElementName       = @$aMatches[1] ?: false;
     102        // $sClassAttribute    = @$aMatches[2] ?: false;
     103        // $sClassDelimiter    = @$aMatches[3] ?: false;
     104        // $sClassValue        = @$aMatches[4] ?: false;
     105        // $sSrcAttribute      = $sPosterAttribute = $sInnerContent = $sStyleAttribute = @$aMatches[5] ?: false;
     106        // $sSrcDelimiter      = $sPosterDelimiter = $sStyleDelimiter = @$aMatches[6] ?: false;
     107        // $sSrcValue          = $sPosterValue = $sBgDeclaration = @$aMatches[7] ?: false;
     108        // $sWidthValue        = @$aMatches[13] ?: 1;
     109        if(isset($aMatches[0])) { $sFullMatch = $aMatches[0]; }
     110        if(isset($aMatches[1])) { $sElementName = $aMatches[1]; }
     111        if(isset($aMatches[2])) { $sClassAttribute = $aMatches[2]; }
     112        if(isset($aMatches[3])) { $sClassDelimiter = $aMatches[3]; }
     113        if(isset($aMatches[4])) { $sClassValue = $aMatches[4]; }
     114        if(isset($aMatches[5])) {
     115            $sSrcAttribute = $aMatches[5];
     116            $sPosterAttribute = $aMatches[5];
     117            $sInnerContent = $aMatches[5];
     118            $sStyleAttribute = $aMatches[5];
     119        }
     120        if(isset($aMatches[6])) {
     121            $sSrcDelimiter = $aMatches[6];
     122            $sPosterDelimiter = $aMatches[6];
     123            $sStyleDelimiter= $aMatches[6];
     124        }
     125        if(isset($aMatches[7])) {
     126            $sSrcValue = $aMatches[7];
     127            $sPosterValue = $aMatches[7];
     128            $sBgDeclaration = $aMatches[7];
     129        }
     130        if(isset($aMatches[8])) {
     131            $sPreloadAttribute = $aMatches[8];
     132            $sCssUrl = $aMatches[8];
     133            $sSrcsetAttribute= $aMatches[8];
     134        }
     135        if(isset($aMatches[9])) {
     136            $sSrcsetDelimiter   = $aMatches[9];
     137            $sPreloadDelimiter = $aMatches[9];
     138            $sCssUrlValue = $aMatches[9];
     139        }
     140        if(isset($aMatches[10])) {
     141            $sSrcsetValue = $aMatches[10];
     142            $sPreloadValue = $aMatches[10];
     143        }
     144        if(isset($aMatches[11])) {
     145            $sAutoLoadAttribute = $aMatches[11];
     146            $sWidthAttribute = $aMatches[11];
     147        }
     148        if(isset($aMatches[12])) {
     149            $sWidthDelimiter = $aMatches[12];
     150        }
     151        if(isset($aMatches[13])) {
     152            $sWidthValue = $aMatches[13];
     153        }
     154        if(isset($aMatches[14])) {
     155            $sHeightAttribute = $aMatches[14];
     156        }
     157        if(isset($aMatches[15])) {
     158            $sHeightDelimiter = $aMatches[15];
     159        }
     160        if(isset($aMatches[16])) {
     161            $sHeightValue = $aMatches[16];
     162        }
    82163        //Return match if it isn't an HTML element
    83164        if ( $sElementName === false )
  • fastcache-by-host-it/trunk/src/Core/Webp.php

    r3417545 r3440516  
    2626    public static function convert( LazyLoad $oLazyLoad, $aMatches )
    2727    {
    28         $elementName  = @$aMatches[1] ?: false;
    29         $srcValue     = @$aMatches[7] ?: false;
    30         $cssUrlValue  = @$aMatches[9] ?: false;
    31         $srcsetValue  = @$aMatches[10] ?: false;
     28        if(isset($aMatches[1])) { $elementName=$aMatches[1]; } else { $elementName=false; }
     29        if(isset($aMatches[7])) { $srcValue = $aMatches[7]; } else { $srcValue = false;}
     30        if(isset($aMatches[9])) { $cssUrlValue = $aMatches[9]; } else { $cssUrlValue = false;}
     31        if(isset($aMatches[10])) { $srcsetValue = $aMatches[10]; } else { $srcsetValue = false;}
     32       
     33        //      $elementName  = @$aMatches[1] ?: false;
     34        //      $srcValue     = @$aMatches[7] ?: false;
     35        //      $cssUrlValue  = @$aMatches[9] ?: false;
     36        //      $srcsetValue  = @$aMatches[10] ?: false;
    3237        $newFullMatch = false;
    3338
Note: See TracChangeset for help on using the changeset viewer.