Plugin Directory

Changeset 3246053


Ignore:
Timestamp:
02/24/2025 10:24:04 PM (13 months ago)
Author:
LucasRolff
Message:

Fix for "undefined array key 'path'" error

Location:
perfgrid-optimizer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • perfgrid-optimizer/trunk/perfgrid-optimizer.php

    r3195726 r3246053  
    183183    }
    184184
    185     if(str_starts_with($_src['path'], $wp['path'])) {
    186         $_src['path'] = preg_replace('|^' . $wp['path'] . '|', '', $_src['path']);
     185    $wp_path = isset($wp['path']) ? $wp['path'] : '';
     186
     187    if(str_starts_with($_src['path'], $wp_path)) {
     188        $_src['path'] = preg_replace('|^' . $wp_path . '|', '', $_src['path']);
    187189    }
    188190
  • perfgrid-optimizer/trunk/readme.txt

    r3195726 r3246053  
    1616## Changelog:
    1717
     18### 1.0.1 (2025-02-24)
     19
     20- Fix for "undefined array key 'path'" error in perfgrid-optimizer.php.
     21
    1822### 1.0.0 (2024-11-06)
    1923
Note: See TracChangeset for help on using the changeset viewer.