Make WordPress Core

Ticket #34986: 34986.diff

File 34986.diff, 1.4 KB (added by afragen, 9 years ago)
  • wp-admin/update-core.php

    diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php
    index ee47d2f..9aa3eab 100644
    a b function list_theme_updates() { 
    357357        <tbody class="plugins">
    358358<?php
    359359        foreach ( $themes as $stylesheet => $theme ) {
     360                // Get the upgrade notice for the new theme version.
     361                if ( isset( $theme->update['upgrade_notice'] ) ) {
     362                        $upgrade_notice = '<br/>' . strip_tags( $theme->update['upgrade_notice'] );
     363                } else {
     364                        $upgrade_notice = '';
     365                }
    360366                echo "
    361367        <tr>
    362368                <th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr( $stylesheet ) . "' /></th>
    363                 <td class='plugin-title'><img src='" . esc_url( $theme->get_screenshot() ) . "' width='85' height='64' style='float:left; padding: 0 5px 5px' alt='' /><strong>" . $theme->display('Name') . '</strong> ' . sprintf( __( 'You have version %1$s installed. Update to %2$s.' ), $theme->display('Version'), $theme->update['new_version'] ) . "</td>
     369                <td class='plugin-title'><img src='" . esc_url( $theme->get_screenshot() ) . "' width='85' height='64' style='float:left; padding: 0 5px 5px' alt='' /><strong>" . $theme->display('Name') . '</strong> ' . sprintf( __( 'You have version %1$s installed. Update to %2$s.' ), $theme->display('Version'), $theme->update['new_version'] ) . $upgrade_notice . "</td>
    364370        </tr>";
    365371        }
    366372?>