Plugin Directory

Changeset 2315242


Ignore:
Timestamp:
05/31/2020 06:56:57 AM (6 years ago)
Author:
image4io
Message:

hotfix 0.3.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • image4io/trunk/inc/Manager/MediaManager.php

    r2315019 r2315242  
    373373        //$full_path = wp_get_original_image_url($attachment_id);
    374374        $full_path=wp_get_attachment_image_src($attachment_id,"attached-image")[0];
     375
     376        if(preg_match('#^.*?/(https?://.*)#', $full_path, $matches)){
     377            $full_path=$matches[1];
     378        }
    375379       
    376380        if (empty($full_path)) {
Note: See TracChangeset for help on using the changeset viewer.