WordPress.org

Make WordPress Core

Changeset 20113


Ignore:
Timestamp:
03/04/12 13:03:48 (5 years ago)
Author:
nacin
Message:

Use new WP_Theme API in list_theme_updates(). fixes #20173. see #20103.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/update-core.php

    r19711 r20113  
    312312    <tbody class="plugins"> 
    313313<?php 
    314     foreach ( (array) $themes as $stylesheet => $theme_data) { 
    315         $screenshot = $theme_data->{'Theme Root URI'} . '/' . $stylesheet . '/' . $theme_data->Screenshot; 
    316  
     314    foreach ( $themes as $stylesheet => $theme ) { 
    317315        echo " 
    318316    <tr class='active'> 
    319         <th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($stylesheet) . "' /></th> 
    320         <td class='plugin-title'><img src='$screenshot' width='64' height='64' style='float:left; padding: 0 5px 5px' /><strong>{$theme_data->Name}</strong>" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $theme_data->Version, $theme_data->update['new_version']) . "</td> 
     317        <th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr( $stylesheet ) . "' /></th> 
     318        <td class='plugin-title'><img src='" . esc_url( $theme->get_screenshot() ) . "' width='64' height='64' style='float:left; padding: 0 5px 5px' /><strong>" . $theme->display('Name') . '</strong> ' . sprintf( __( 'You have version %1$s installed. Update to %2$s.' ), $theme->display('Version'), $theme->update['new_version'] ) . "</td> 
    321319    </tr>"; 
    322320    } 
Note: See TracChangeset for help on using the changeset viewer.