Make WordPress Core

Changeset 13173


Ignore:
Timestamp:
02/16/2010 09:55:07 PM (15 years ago)
Author:
ryan
Message:

Correct the Theme update package check. Props Denis-de-Bernardy. Fixes #11908 for 2.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.9/wp-admin/themes.php

    r12231 r13173  
    117117        if ( ! current_user_can('update_themes') )
    118118            printf( '<p><strong>' . __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%1$s">View version %3$s Details</a>.') . '</strong></p>', $theme_name, $details_url, $update['new_version']);
    119         else if ( empty($update->package) )
     119        else if ( empty($update['package']) )
    120120            printf( '<p><strong>' . __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%1$s">View version %3$s Details</a> <em>automatic upgrade unavailable for this theme</em>.') . '</strong></p>', $theme_name, $details_url, $update['new_version']);
    121121        else
Note: See TracChangeset for help on using the changeset viewer.