Support » Plugin: W3 Total Cache » Importing attachments needs to use proper attachment URLs

  • Hi Frederick,

    Would it be possible to apply the following 1-line fix

    --- a/wordpress/wp-content/plugins/w3-total-cache/lib/W3/Plugin/CdnAdmin.php
    +++ b/wordpress/wp-content/plugins/w3-total-cache/lib/W3/Plugin/CdnAdmin.php
    @@ -559,6 +559,7 @@ class W3_Plugin_CdnAdmin extends W3_Plugin {
                                                     require_once ABSPATH . 'wp-admin/includes/image.php';
                                                     wp_update_attachment_metadata($id, wp_generate_attachment_metadata($id, $dst));
    +                                                $dst_url = wp_get_attachment_url($id);
                                                     $attachments[$src] = array(

    so that importing attachments into Media Library works with plugins that use alternative storage for media files, such as WP2Cloud?

    W3 Total Cache version is

    Thank you!


  • The topic ‘Importing attachments needs to use proper attachment URLs’ is closed to new replies.