Making WordPress.org


Ignore:
Timestamp:
08/31/2016 03:38:04 AM (9 years ago)
Author:
obenland
Message:

Plugin Directory: Don't pass SVG files to Photon.

Photon does not support SVG files currently.

See [3816].

File:
1 edited

Legend:

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

    r3816 r3887  
    377377            // Images in the assets folder - /plugin-name/assets/screenshot-1.png.
    378378            $format = 'https://i0.wp.com/plugins.svn.wordpress.org/!svn/bc/%1$s/%2$s/assets/%3$s?strip=all';
    379 
     379        }
     380
     381        // Photon does not support SVG files. https://github.com/Automattic/jetpack/issues/81
     382        if ( strpos( $asset['filename'], '.svg' ) ) {
     383            $format = str_replace( 'i0.wp.com/', '', $format );
    380384        }
    381385
Note: See TracChangeset for help on using the changeset viewer.