Plugin Directory

Changeset 3045955


Ignore:
Timestamp:
03/05/2024 09:17:15 PM (2 years ago)
Author:
cdnsun
Message:

PHP8 compatibility

Location:
cdnsun
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cdnsun/trunk/inc/class-cdnsun-rewrite.php

    r1912152 r3045955  
    3636                            ')[^\"\')]+)|([^/\"\']+\.[^/\"\')]+))(?=[\"\')])#';
    3737                               
    38         return preg_replace_callback($regex_rule, [&$this, 'rewrite_url'], $html);
     38        return preg_replace_callback($regex_rule, function ($matches) { return $this->rewrite_url($matches); }, $html);
    3939    }
    4040       
Note: See TracChangeset for help on using the changeset viewer.