Making WordPress.org


Ignore:
Timestamp:
08/16/2016 05:07:23 PM (10 years ago)
Author:
obenland
Message:

Plugin Directory: Use Photon to serve plugin assets.

See #1719.

File:
1 edited

Legend:

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

    r3793 r3816  
    372372
    373373                        // Screenshots in the plugin folder - /plugins/plugin-name/screenshot-1.png.
    374                         $format = 'https://s.w.org/plugins/%s/%s?rev=%s';
     374                        $format = 'https://i0.wp.com/plugins.svn.wordpress.org/!svn/bc/%1$s/%2$s/trunk/%3$s?strip=all';
    375375                } else {
    376376
    377377                        // Images in the assets folder - /plugin-name/assets/screenshot-1.png.
    378                         $format = 'https://ps.w.org/%s/assets/%s?rev=%s';
     378                        $format = 'https://i0.wp.com/plugins.svn.wordpress.org/!svn/bc/%1$s/%2$s/assets/%3$s?strip=all';
     379
    379380                }
    380381
    381382                return esc_url( sprintf(
    382383                        $format,
     384                        $asset['revision'],
    383385                        $plugin,
    384                         $asset['filename'],
    385                         $asset['revision']
     386                        $asset['filename']
    386387                ) );
    387388        }
Note: See TracChangeset for help on using the changeset viewer.