Changeset 5008
- Timestamp:
- 02/24/2017 11:10:13 PM (8 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-locale-banner.php
r4223 r5008 69 69 70 70 // Build a list of WordPress locales which we'll suggest to the user. 71 $suggest_locales = array_values( array_intersect( $ translated_locales, $locales_from_header) );71 $suggest_locales = array_values( array_intersect( $locales_from_header, $translated_locales ) ); 72 72 $current_locale_is_suggested = in_array( $current_locale, $suggest_locales ); 73 73 $current_locale_is_translated = in_array( $current_locale, $translated_locales ); … … 263 263 264 264 foreach ( $available_locales as $locale ) { 265 list( $l ang, ) = preg_split( '/[_-]/', $locale );266 if ( $lang ) {265 list( $locale_lang, ) = preg_split( '/[_-]/', $locale ); 266 if ( $lang === $locale_lang ) { 267 267 return $locale; 268 268 } -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/tests/phpunit/tests/wporg-plugin-api-performance.php
r4725 r5008 3 3 require_once ABSPATH . 'wp-admin/includes/plugin-install.php'; 4 4 5 6 5 /** 7 * @test6 * 8 7 * @group plugins-api 9 8 * @group performance 10 9 */ 11 12 10 class Tests_Plugins_API_Performance extends WP_UnitTestCase { 13 11
Note: See TracChangeset
for help on using the changeset viewer.