Changeset 28304 for trunk/src/wp-admin/includes/update.php
- Timestamp:
- 05/06/2014 05:20:10 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/update.php
r28145 r28304 102 102 */ 103 103 function get_core_checksums( $version, $locale ) { 104 $return = array();105 106 104 $url = $http_url = 'http://api.wordpress.org/core/checksums/1.0/?' . http_build_query( compact( 'version', 'locale' ), null, '&' ); 107 105 … … 182 180 case 'development' : 183 181 return sprintf( __( 'You are using a development version (%1$s). Cool! Please <a href="%2$s">stay updated</a>.' ), get_bloginfo( 'version', 'display' ), network_admin_url( 'update-core.php' ) ); 184 break;185 182 186 183 case 'upgrade' : 187 184 return sprintf( '<strong>'.__( '<a href="%1$s">Get Version %2$s</a>' ).'</strong>', network_admin_url( 'update-core.php' ), $cur->current); 188 break;189 185 190 186 case 'latest' : 191 187 default : 192 188 return sprintf( __( 'Version %s' ), get_bloginfo( 'version', 'display' ) ); 193 break;194 189 } 195 190 } … … 333 328 334 329 function get_theme_updates() { 335 $themes = wp_get_themes();336 330 $current = get_site_transient('update_themes'); 337 331 … … 368 362 return false; 369 363 $r = $current->response[ $theme_key ]; 370 $themes_allowedtags = array('a' => array('href' => array(),'title' => array()),'abbr' => array('title' => array()),'acronym' => array('title' => array()),'code' => array(),'em' => array(),'strong' => array());371 $theme_name = wp_kses( $theme['Name'], $themes_allowedtags );372 364 373 365 $details_url = add_query_arg( array( 'TB_iframe' => 'true', 'width' => 1024, 'height' => 800 ), $current->response[ $theme_key ]['url'] );
Note: See TracChangeset
for help on using the changeset viewer.