Changeset 5194 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/jobs/class-api-update-updater.php
- Timestamp:
- 03/29/2017 02:48:32 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/jobs/class-api-update-updater.php
r4727 r5194 92 92 wp_cache_delete( $plugin_details_cache_key, 'update-check-3' ); 93 93 94 // Clear plugin info caches also 95 if ( defined( 'GLOTPRESS_LOCALES_PATH' ) && GLOTPRESS_LOCALES_PATH ) { 96 require GLOTPRESS_LOCALES_PATH; 97 98 $locales = array_filter( array_values( wp_list_pluck( \GP_Locales::locales(), 'wp_locale' ) ) ); 99 100 foreach ( $locales as $locale ) { 101 $cache_key = "plugin_information:" 102 . ( strlen( $plugin_slug ) > 200 ? 'md5:' . md5( $plugin_slug ) : $plugin_slug ) 103 . ":{$locale}"; 104 wp_cache_delete( $cache_key, 'plugin_api_info' ); 105 } 106 } 107 94 108 return true; 95 109 }
Note: See TracChangeset
for help on using the changeset viewer.