WordPress.org

Make WordPress Core

Ticket #11908: 11908.diff

File 11908.diff, 1.1 KB (added by Denis-de-Bernardy, 4 years ago)
  • wp-admin/themes.php

     
    116116 
    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 
    122122                        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> or <a href="%4$s" %5$s >upgrade automatically</a>.') . '</strong></p>', $theme_name, $details_url, $update['new_version'], $update_url, $update_onclick );