W3 Total Cache
Importing attachments needs to use proper attachment URLs (1 post)

  1. Artem Livshits
    Posted 2 years ago #

    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!



Topic Closed

This topic has been closed to new replies.

About this Plugin

  • W3 Total Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by Artem Livshits
  • This topic is not resolved
  • WordPress version: 3.5.1


No tags yet.