Changeset 25566 for trunk/src/wp-admin/includes/update.php
- Timestamp:
- 09/23/2013 02:07:51 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/update.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/update.php
r25540 r25566 380 380 } 381 381 add_action( 'admin_notices', 'maintenance_nag' ); 382 383 /** 384 * Retrieves a list of all language updates available. 385 * 386 * @since 3.7.0 387 */ 388 function wp_get_translation_updates() { 389 $updates = array(); 390 $transients = array( 'update_core' => 'core', 'update_plugins' => 'plugin', 'update_themes' => 'theme' ); 391 foreach ( $transients as $transient => $type ) { 392 393 $transient = get_site_transient( $transient ); 394 if ( empty( $transient->translations ) ) 395 continue; 396 397 foreach ( $transient->translations as $translation ) { 398 $updates[] = (object) $translation; 399 } 400 } 401 402 return $updates; 403 }
Note: See TracChangeset
for help on using the changeset viewer.