Closed webaware closed 10 years ago
Also added code to allow caller to specify the plugin slug, useful when the plugin name has changed since the first commit (which means your synthesized slug fails).
it's ps.w.org now. the changes are quite rapid O__o
from http://wordpress.org/plugins/buddypress/screenshots/ src:
<li>
<a href="//ps.w.org/buddypress/assets/screenshot-2.gif?rev=626668" title="Click to view full-size screenshot 2" rel="nofollow">
<img class="screenshot" src="//ps.w.org/buddypress/assets/screenshot-2.gif?rev=626668" alt="buddypress screenshot 2">
</a>
<p><strong>Extended Profiles</strong> - Fully editable profile fields allow you to define the fields users can fill in to describe themselves. Tailor profile fields to suit your audience.</p>
</li>
Actually, it looks like plugins with screenshots in the assets folder are served from ps.w.org, but plugins with screenshots packaged with the source are served from s.w.org:
so it should be something like
$base_url = 'https://s.w.org/plugins/' . $plugin_slug . '/';
$assets_url = 'https://ps.w.org/' . $plugin_slug . '/assets/';
seems to work nice
Good stuff. I presume you've taken this over then; I've actually decided not to make the GitHub readme.md mirror the WordPress.org readme.txt for my plugins, since those files address different sets of people.
ok, i'll make a new pull request
ok, new request with lucky number #13. this one may be closed
The plugin screenshot base URL has changed again, since WordPress moved static resources to s.w.org.