Changeset 10098 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-plugin.php
- Timestamp:
- 07/26/2020 01:42:13 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-plugin.php
r10092 r10098 226 226 227 227 // Translations. 228 $result['language_pack '] = [];228 $result['language_packs'] = []; 229 229 if ( defined ( 'API_WPORGPATH' ) && file_exists( API_WPORGPATH . '/translations/lib.php' ) ) { 230 230 require_once API_WPORGPATH . '/translations/lib.php'; 231 231 232 $result['language_pack '] = find_all_translations_for_type_and_domain(232 $result['language_packs'] = find_all_translations_for_type_and_domain( 233 233 'plugin', 234 234 $result['slug'], 235 235 $result['version'] 236 236 ); 237 $result['language_pack '] = array_map( function( $item ) use ( $result ) {237 $result['language_packs'] = array_map( function( $item ) use ( $result ) { 238 238 return [ 239 239 'type' => 'plugin', … … 244 244 'package' => $item->package, 245 245 ]; 246 }, $result['language_pack '] );246 }, $result['language_packs'] ); 247 247 } 248 248
Note: See TracChangeset
for help on using the changeset viewer.