Make WordPress Core

Changeset 12374


Ignore:
Timestamp:
12/11/2009 05:18:29 PM (15 years ago)
Author:
ryan
Message:

Show Upgrade Notice for plugins. see #10973

File:
1 edited

Legend:

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

    r12204 r12374  
    174174            $compat = '';
    175175        }
     176        if ( isset($plugin_data->update->upgrade_notice) ) {
     177            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
     178        } else {
     179            $upgrade_notice = '';
     180        }
    176181        echo "
    177182    <tr class='active'>
    178183        <th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>
    179         <td class='plugin-title'><strong>{$plugin_data->Name}</strong>" . sprintf(__('You are running version %1$s. Upgrade to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . $compat . "</td>
     184        <td class='plugin-title'><strong>{$plugin_data->Name}</strong>" . sprintf(__('You are running version %1$s. Upgrade to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . $compat . $upgrade_notice . "</td>
    180185    </tr>";
    181186    }
Note: See TracChangeset for help on using the changeset viewer.