• cblaisedev

    (@cblaisedev)


    When uploading files to the media area, the generated link to the file no longer references the CDN. When you add an upload to a page, it contains the url to the actual website and not the CDN.

    Is this a breaking change in recent versions? We are on 2.0.6

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter cblaisedev

    (@cblaisedev)

    It looks like starting with Version 2.0.0, you no longer replace content for a various things. What was the reasoning for this change?

    
    if( !is_admin() ){
    add_filter('the_content',array($wpawscdn,'wpaws_cdn_content'),PHP_INT_MAX);
    add_filter( 'style_loader_src', array($wpawscdn,'wpaws_cdn_content') ,PHP_INT_MAX);
    add_filter( 'script_loader_src', array($wpawscdn,'wpaws_cdn_content') ,PHP_INT_MAX);
    add_filter( 'woocommerce_product_get_image', array($wpawscdn,'wpaws_cdn_content'),PHP_INT_MAX);	
    add_filter( 'wp_get_attachment_thumb_url', array($wpawscdn,'wpaws_cdn_content'),PHP_INT_MAX);
    add_filter( 'wp_get_attachment_url', array($wpawscdn,'wpaws_cdn_content'),PHP_INT_MAX);
    add_filter( 'wp_get_attachment_link', array($wpawscdn,'wpaws_cdn_content'),PHP_INT_MAX);
    add_filter('render_block',array($wpawscdn,'wpaws_cdn_content'),PHP_INT_MAX);
    add_filter( 'wp_get_attachment_image', array($wpawscdn,'wpaws_cdn_content'),PHP_INT_MAX);
    add_filter( 'wp_get_attachment_image_attributes', array($wpawscdn,'wpaws_cdn_content'),PHP_INT_MAX);
    add_filter( 'wp_get_attachment_image_srcset', array($wpawscdn,'wpaws_cdn_content'),PHP_INT_MAX);
    add_filter( 'wp_get_attachment_thumb_file', array($wpawscdn,'wpaws_cdn_content'),PHP_INT_MAX);
    add_filter( 'post_thumbnail_html', array($wpawscdn,'wpaws_cdn_content') ,PHP_INT_MAX);
    add_filter( 'widget_text', array($wpawscdn,'wpaws_cdn_content'),PHP_INT_MAX);
    add_filter( 'post_gallery', array($wpawscdn,'wpaws_cdn_content'),PHP_INT_MAX);
    add_filter( 'wp_calculate_image_srcset', array($wpawscdn,'wpaws_cdn_content'),PHP_INT_MAX);
    }

    I have noticed the same behaviour – hence finding myself here ?? Did you get a response or updated version? @cblaisedev

    This is having a severe impact on performance of my website currently.

    Did you try rolling back the plugin version?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Uploads are no longer getting replaced’ is closed to new replies.