WordPress.org

Support

Support » Plugins and Hacks » W3 Total Cache » Importing attachments needs to use proper attachment URLs

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(
                                                         $dst,

    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 0.9.2.5.

    Thank you!

    -Artem

    http://wordpress.org/extend/plugins/w3-total-cache/

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