Making WordPress.org


Ignore:
Timestamp:
01/13/2017 08:13:14 AM (8 years ago)
Author:
dd32
Message:

Plugin Directory: Use the Jetpack photon CDN function rather than rolling our own; don't fetch banner assets through the CDN during plugin imports.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-import.php

    r4622 r4657  
    183183        if ( $first_banner = reset( $assets['banner'] ) ) {
    184184            // The Banners are not stored locally, which is why a URL is used here
    185             $banner_average_color = Tools::get_image_average_color( Template::get_asset_url( $plugin, $first_banner ) );
     185            $banner_average_color = Tools::get_image_average_color( Template::get_asset_url( $plugin, $first_banner, false /* no CDN */ ) );
    186186        }
    187187        update_post_meta( $plugin->ID, 'assets_banners_color', wp_slash( $banner_average_color ) );
Note: See TracChangeset for help on using the changeset viewer.