get_theme_updates() –

You appear to be a bot. Output may be restricted

Description

Usage

$array = get_theme_updates();

Parameters

Returns

array

Source

File name: wordpress/wp-admin/includes/update.php
Lines:

1 to 15 of 15
function get_theme_updates() {
  $current = get_site_transient( 'update_themes' );

  if ( ! isset( $current->response ) ) {
    return array();
  }

  $update_themes = array();
  foreach ( $current->response as $stylesheet => $data ) {
    $update_themes[ $stylesheet ]         = wp_get_theme( $stylesheet );
    $update_themes[ $stylesheet ]->update = $data;
  }

  return $update_themes;
}
 

 View on GitHub View on Trac