- Timestamp:
- 10/19/2014 02:17:33 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/translations/lib.php
r913 r914 171 171 if ( 'core' === $type ) { 172 172 $path = "core/{$result['version']}/$language.zip"; 173 $urlpath = $path; // paths are identical for core 173 174 } else { 174 $path = "{$type}s/$domain/{$result['version']}/$language.zip"; 175 $path = "{$type}s/$domain/{$result['version']}/$language.zip"; // rosetta builds dir uses plural plugins/themes path 176 $urlpath = "{$type}/$domain/{$result['version']}/$language.zip"; // url uses singular plugin/theme path 175 177 } 176 178 … … 182 184 'version' => $result['version'], 183 185 'updated' => $result['updated'], 184 'package' => maybe_ssl_url( "http://downloads.wordpress.org/translation/$ path" ),186 'package' => maybe_ssl_url( "http://downloads.wordpress.org/translation/$urlpath" ), 185 187 'autoupdate' => true, 186 188 );
Note: See TracChangeset
for help on using the changeset viewer.