list_plugin_updates

The timeline below displays how wordpress function list_plugin_updates has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.4

/**
 * Display the upgrade plugins form.
 *
 * @since 2.9.0
 */
function list_plugin_updates()
{
    $wp_version = get_bloginfo('version');
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h2>' . __('Plugins') . '</h2>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' === $core_updates[0]->response || 'development' === $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    $plugins_count = count($plugins);
    ?>
<h2>
	<?php 
    printf('%s <span class="count">(%d)</span>', __('Plugins'), number_format_i18n($plugins_count));
    ?>
</h2>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
	<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat updates-table" id="update-plugins-table">
	<thead>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<td class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</thead>

	<tbody class="plugins">
	<?php 
    $auto_updates = array();
    if (wp_is_auto_update_enabled_for_type('plugin')) {
        $auto_updates = (array) get_site_option('auto_update_plugins', array());
        $auto_update_notice = ' | ' . wp_get_auto_update_message();
    }
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $icon = '<span class="dashicons dashicons-admin-plugins"></span>';
        $preferred_icons = array('svg', '2x', '1x', 'default');
        foreach ($preferred_icons as $preferred_icon) {
            if (!empty($plugin_data->update->icons[$preferred_icon])) {
                $icon = '<img src="' . esc_url($plugin_data->update->icons[$preferred_icon]) . '" alt="" />';
                break;
            }
        }
        // Get plugin compat for running version of WordPress.
        if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $cur_wp_version, '>=')) {
            /* translators: %s: WordPress version. */
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %s: 100%% (according to its author)'), $cur_wp_version);
        } else {
            /* translators: %s: WordPress version. */
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $core_update_version, '>=')) {
                /* translators: %s: WordPress version. */
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %s: 100%% (according to its author)'), $core_update_version);
            } else {
                /* translators: %s: WordPress version. */
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %s: Unknown'), $core_update_version);
            }
        }
        $requires_php = isset($plugin_data->update->requires_php) ? $plugin_data->update->requires_php : null;
        $compatible_php = is_php_version_compatible($requires_php);
        if (!$compatible_php && current_user_can('update_php')) {
            $compat .= '<br />' . __('This update does not work with your version of PHP.') . '&nbsp;';
            $compat .= sprintf(
                /* translators: %s: URL to Update PHP page. */
                __('<a href="%s">Learn more about updating PHP</a>.'),
                esc_url(wp_get_update_php_url())
            );
            $annotation = wp_get_update_php_annotation();
            if ($annotation) {
                $compat .= '</p><p><em>' . $annotation . '</em>';
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details = sprintf(
            '<a href="%1$s" class="thickbox open-plugin-details-modal" aria-label="%2$s">%3$s</a>',
            esc_url($details_url),
            /* translators: 1: Plugin name, 2: Version number. */
            esc_attr(sprintf(__('View %1$s version %2$s details'), $plugin_data->Name, $plugin_data->update->new_version)),
            /* translators: %s: Plugin version. */
            sprintf(__('View version %s details.'), $plugin_data->update->new_version)
        );
        $checkbox_id = 'checkbox_' . md5($plugin_file);
        ?>
	<tr>
		<td class="check-column">
			<?php 
        if ($compatible_php) {
            ?>
				<input type="checkbox" name="checked[]" id="<?php 
            echo $checkbox_id;
            ?>" value="<?php 
            echo esc_attr($plugin_file);
            ?>" />
				<label for="<?php 
            echo $checkbox_id;
            ?>">
					<span class="screen-reader-text">
					<?php 
            /* translators: Hidden accessibility text. %s: Plugin name. */
            printf(__('Select %s'), $plugin_data->Name);
            ?>
					</span>
				</label>
			<?php 
        }
        ?>
		</td>
		<td class="plugin-title"><p>
			<?php 
        echo $icon;
        ?>
			<strong><?php 
        echo $plugin_data->Name;
        ?></strong>
			<?php 
        printf(
            /* translators: 1: Plugin version, 2: New version. */
            __('You have version %1$s installed. Update to %2$s.'),
            $plugin_data->Version,
            $plugin_data->update->new_version
        );
        echo ' ' . $details . $compat;
        if (in_array($plugin_file, $auto_updates, true)) {
            echo $auto_update_notice;
        }
        echo $upgrade_notice;
        ?>
		</p></td>
	</tr>
			<?php 
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<td class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
	<?php 
}

WordPress Version: 6.3

/**
 * Display the upgrade plugins form.
 *
 * @since 2.9.0
 */
function list_plugin_updates()
{
    $wp_version = get_bloginfo('version');
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h2>' . __('Plugins') . '</h2>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' === $core_updates[0]->response || 'development' === $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    $plugins_count = count($plugins);
    ?>
<h2>
	<?php 
    printf('%s <span class="count">(%d)</span>', __('Plugins'), number_format_i18n($plugins_count));
    ?>
</h2>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
	<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat updates-table" id="update-plugins-table">
	<thead>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<td class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</thead>

	<tbody class="plugins">
	<?php 
    $auto_updates = array();
    if (wp_is_auto_update_enabled_for_type('plugin')) {
        $auto_updates = (array) get_site_option('auto_update_plugins', array());
        $auto_update_notice = ' | ' . wp_get_auto_update_message();
    }
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $icon = '<span class="dashicons dashicons-admin-plugins"></span>';
        $preferred_icons = array('svg', '2x', '1x', 'default');
        foreach ($preferred_icons as $preferred_icon) {
            if (!empty($plugin_data->update->icons[$preferred_icon])) {
                $icon = '<img src="' . esc_url($plugin_data->update->icons[$preferred_icon]) . '" alt="" />';
                break;
            }
        }
        // Get plugin compat for running version of WordPress.
        if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $cur_wp_version, '>=')) {
            /* translators: %s: WordPress version. */
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %s: 100%% (according to its author)'), $cur_wp_version);
        } else {
            /* translators: %s: WordPress version. */
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $core_update_version, '>=')) {
                /* translators: %s: WordPress version. */
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %s: 100%% (according to its author)'), $core_update_version);
            } else {
                /* translators: %s: WordPress version. */
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %s: Unknown'), $core_update_version);
            }
        }
        $requires_php = isset($plugin_data->update->requires_php) ? $plugin_data->update->requires_php : null;
        $compatible_php = is_php_version_compatible($requires_php);
        if (!$compatible_php && current_user_can('update_php')) {
            $compat .= '<br />' . __('This update does not work with your version of PHP.') . '&nbsp;';
            $compat .= sprintf(
                /* translators: %s: URL to Update PHP page. */
                __('<a href="%s">Learn more about updating PHP</a>.'),
                esc_url(wp_get_update_php_url())
            );
            $annotation = wp_get_update_php_annotation();
            if ($annotation) {
                $compat .= '</p><p><em>' . $annotation . '</em>';
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details = sprintf(
            '<a href="%1$s" class="thickbox open-plugin-details-modal" aria-label="%2$s">%3$s</a>',
            esc_url($details_url),
            /* translators: 1: Plugin name, 2: Version number. */
            esc_attr(sprintf(__('View %1$s version %2$s details'), $plugin_data->Name, $plugin_data->update->new_version)),
            /* translators: %s: Plugin version. */
            sprintf(__('View version %s details.'), $plugin_data->update->new_version)
        );
        $checkbox_id = 'checkbox_' . md5($plugin_file);
        ?>
	<tr>
		<td class="check-column">
			<?php 
        if ($compatible_php) {
            ?>
				<label for="<?php 
            echo $checkbox_id;
            ?>" class="label-covers-full-cell">
					<span class="screen-reader-text">
					<?php 
            /* translators: Hidden accessibility text. %s: Plugin name. */
            printf(__('Select %s'), $plugin_data->Name);
            ?>
					</span>
				</label>
				<input type="checkbox" name="checked[]" id="<?php 
            echo $checkbox_id;
            ?>" value="<?php 
            echo esc_attr($plugin_file);
            ?>" />
			<?php 
        }
        ?>
		</td>
		<td class="plugin-title"><p>
			<?php 
        echo $icon;
        ?>
			<strong><?php 
        echo $plugin_data->Name;
        ?></strong>
			<?php 
        printf(
            /* translators: 1: Plugin version, 2: New version. */
            __('You have version %1$s installed. Update to %2$s.'),
            $plugin_data->Version,
            $plugin_data->update->new_version
        );
        echo ' ' . $details . $compat;
        if (in_array($plugin_file, $auto_updates, true)) {
            echo $auto_update_notice;
        }
        echo $upgrade_notice;
        ?>
		</p></td>
	</tr>
			<?php 
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<td class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
	<?php 
}

WordPress Version: 6.2

/**
 * Display the upgrade plugins form.
 *
 * @since 2.9.0
 */
function list_plugin_updates()
{
    $wp_version = get_bloginfo('version');
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h2>' . __('Plugins') . '</h2>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' === $core_updates[0]->response || 'development' === $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    $plugins_count = count($plugins);
    ?>
<h2>
	<?php 
    printf('%s <span class="count">(%d)</span>', __('Plugins'), number_format_i18n($plugins_count));
    ?>
</h2>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
	<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat updates-table" id="update-plugins-table">
	<thead>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<td class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</thead>

	<tbody class="plugins">
	<?php 
    $auto_updates = array();
    if (wp_is_auto_update_enabled_for_type('plugin')) {
        $auto_updates = (array) get_site_option('auto_update_plugins', array());
        $auto_update_notice = ' | ' . wp_get_auto_update_message();
    }
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $icon = '<span class="dashicons dashicons-admin-plugins"></span>';
        $preferred_icons = array('svg', '2x', '1x', 'default');
        foreach ($preferred_icons as $preferred_icon) {
            if (!empty($plugin_data->update->icons[$preferred_icon])) {
                $icon = '<img src="' . esc_url($plugin_data->update->icons[$preferred_icon]) . '" alt="" />';
                break;
            }
        }
        // Get plugin compat for running version of WordPress.
        if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $cur_wp_version, '>=')) {
            /* translators: %s: WordPress version. */
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %s: 100%% (according to its author)'), $cur_wp_version);
        } else {
            /* translators: %s: WordPress version. */
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $core_update_version, '>=')) {
                /* translators: %s: WordPress version. */
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %s: 100%% (according to its author)'), $core_update_version);
            } else {
                /* translators: %s: WordPress version. */
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %s: Unknown'), $core_update_version);
            }
        }
        $requires_php = isset($plugin_data->update->requires_php) ? $plugin_data->update->requires_php : null;
        $compatible_php = is_php_version_compatible($requires_php);
        if (!$compatible_php && current_user_can('update_php')) {
            $compat .= '<br />' . __('This update does not work with your version of PHP.') . '&nbsp;';
            $compat .= sprintf(
                /* translators: %s: URL to Update PHP page. */
                __('<a href="%s">Learn more about updating PHP</a>.'),
                esc_url(wp_get_update_php_url())
            );
            $annotation = wp_get_update_php_annotation();
            if ($annotation) {
                $compat .= '</p><p><em>' . $annotation . '</em>';
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details = sprintf(
            '<a href="%1$s" class="thickbox open-plugin-details-modal" aria-label="%2$s">%3$s</a>',
            esc_url($details_url),
            /* translators: 1: Plugin name, 2: Version number. */
            esc_attr(sprintf(__('View %1$s version %2$s details'), $plugin_data->Name, $plugin_data->update->new_version)),
            /* translators: %s: Plugin version. */
            sprintf(__('View version %s details.'), $plugin_data->update->new_version)
        );
        $checkbox_id = 'checkbox_' . md5($plugin_file);
        ?>
	<tr>
		<td class="check-column">
			<?php 
        if ($compatible_php) {
            ?>
				<input type="checkbox" name="checked[]" id="<?php 
            echo $checkbox_id;
            ?>" value="<?php 
            echo esc_attr($plugin_file);
            ?>" />
				<label for="<?php 
            echo $checkbox_id;
            ?>" class="screen-reader-text">
					<?php 
            /* translators: Hidden accessibility text. %s: Plugin name. */
            printf(__('Select %s'), $plugin_data->Name);
            ?>
				</label>
			<?php 
        }
        ?>
		</td>
		<td class="plugin-title"><p>
			<?php 
        echo $icon;
        ?>
			<strong><?php 
        echo $plugin_data->Name;
        ?></strong>
			<?php 
        printf(
            /* translators: 1: Plugin version, 2: New version. */
            __('You have version %1$s installed. Update to %2$s.'),
            $plugin_data->Version,
            $plugin_data->update->new_version
        );
        echo ' ' . $details . $compat . $upgrade_notice;
        if (in_array($plugin_file, $auto_updates, true)) {
            echo $auto_update_notice;
        }
        ?>
		</p></td>
	</tr>
			<?php 
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<td class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
	<?php 
}

WordPress Version: 6.1

/**
 * Display the upgrade plugins form.
 *
 * @since 2.9.0
 */
function list_plugin_updates()
{
    $wp_version = get_bloginfo('version');
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h2>' . __('Plugins') . '</h2>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' === $core_updates[0]->response || 'development' === $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    $plugins_count = count($plugins);
    ?>
<h2>
	<?php 
    printf('%s <span class="count">(%d)</span>', __('Plugins'), number_format_i18n($plugins_count));
    ?>
</h2>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
	<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat updates-table" id="update-plugins-table">
	<thead>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<td class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</thead>

	<tbody class="plugins">
	<?php 
    $auto_updates = array();
    if (wp_is_auto_update_enabled_for_type('plugin')) {
        $auto_updates = (array) get_site_option('auto_update_plugins', array());
        $auto_update_notice = ' | ' . wp_get_auto_update_message();
    }
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $icon = '<span class="dashicons dashicons-admin-plugins"></span>';
        $preferred_icons = array('svg', '2x', '1x', 'default');
        foreach ($preferred_icons as $preferred_icon) {
            if (!empty($plugin_data->update->icons[$preferred_icon])) {
                $icon = '<img src="' . esc_url($plugin_data->update->icons[$preferred_icon]) . '" alt="" />';
                break;
            }
        }
        // Get plugin compat for running version of WordPress.
        if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $cur_wp_version, '>=')) {
            /* translators: %s: WordPress version. */
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %s: 100%% (according to its author)'), $cur_wp_version);
        } else {
            /* translators: %s: WordPress version. */
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $core_update_version, '>=')) {
                /* translators: %s: WordPress version. */
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %s: 100%% (according to its author)'), $core_update_version);
            } else {
                /* translators: %s: WordPress version. */
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %s: Unknown'), $core_update_version);
            }
        }
        $requires_php = isset($plugin_data->update->requires_php) ? $plugin_data->update->requires_php : null;
        $compatible_php = is_php_version_compatible($requires_php);
        if (!$compatible_php && current_user_can('update_php')) {
            $compat .= '<br>' . __('This update does not work with your version of PHP.') . '&nbsp;';
            $compat .= sprintf(
                /* translators: %s: URL to Update PHP page. */
                __('<a href="%s">Learn more about updating PHP</a>.'),
                esc_url(wp_get_update_php_url())
            );
            $annotation = wp_get_update_php_annotation();
            if ($annotation) {
                $compat .= '</p><p><em>' . $annotation . '</em>';
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details = sprintf(
            '<a href="%1$s" class="thickbox open-plugin-details-modal" aria-label="%2$s">%3$s</a>',
            esc_url($details_url),
            /* translators: 1: Plugin name, 2: Version number. */
            esc_attr(sprintf(__('View %1$s version %2$s details'), $plugin_data->Name, $plugin_data->update->new_version)),
            /* translators: %s: Plugin version. */
            sprintf(__('View version %s details.'), $plugin_data->update->new_version)
        );
        $checkbox_id = 'checkbox_' . md5($plugin_file);
        ?>
	<tr>
		<td class="check-column">
			<?php 
        if ($compatible_php) {
            ?>
				<input type="checkbox" name="checked[]" id="<?php 
            echo $checkbox_id;
            ?>" value="<?php 
            echo esc_attr($plugin_file);
            ?>" />
				<label for="<?php 
            echo $checkbox_id;
            ?>" class="screen-reader-text">
					<?php 
            /* translators: %s: Plugin name. */
            printf(__('Select %s'), $plugin_data->Name);
            ?>
				</label>
			<?php 
        }
        ?>
		</td>
		<td class="plugin-title"><p>
			<?php 
        echo $icon;
        ?>
			<strong><?php 
        echo $plugin_data->Name;
        ?></strong>
			<?php 
        printf(
            /* translators: 1: Plugin version, 2: New version. */
            __('You have version %1$s installed. Update to %2$s.'),
            $plugin_data->Version,
            $plugin_data->update->new_version
        );
        echo ' ' . $details . $compat . $upgrade_notice;
        if (in_array($plugin_file, $auto_updates, true)) {
            echo $auto_update_notice;
        }
        ?>
		</p></td>
	</tr>
			<?php 
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<td class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
	<?php 
}

WordPress Version: 5.8

/**
 * Display the upgrade plugins form.
 *
 * @since 2.9.0
 */
function list_plugin_updates()
{
    $wp_version = get_bloginfo('version');
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h2>' . __('Plugins') . '</h2>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' === $core_updates[0]->response || 'development' === $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    $plugins_count = count($plugins);
    ?>
<h2>
	<?php 
    printf('%s <span class="count">(%d)</span>', __('Plugins'), number_format_i18n($plugins_count));
    ?>
</h2>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
	<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat updates-table" id="update-plugins-table">
	<thead>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<td class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</thead>

	<tbody class="plugins">
	<?php 
    $auto_updates = array();
    if (wp_is_auto_update_enabled_for_type('plugin')) {
        $auto_updates = (array) get_site_option('auto_update_plugins', array());
        $auto_update_notice = ' | ' . wp_get_auto_update_message();
    }
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $icon = '<span class="dashicons dashicons-admin-plugins"></span>';
        $preferred_icons = array('svg', '2x', '1x', 'default');
        foreach ($preferred_icons as $preferred_icon) {
            if (!empty($plugin_data->update->icons[$preferred_icon])) {
                $icon = '<img src="' . esc_url($plugin_data->update->icons[$preferred_icon]) . '" alt="" />';
                break;
            }
        }
        // Get plugin compat for running version of WordPress.
        if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $cur_wp_version, '>=')) {
            /* translators: %s: WordPress version. */
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %s: 100%% (according to its author)'), $cur_wp_version);
        } else {
            /* translators: %s: WordPress version. */
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $core_update_version, '>=')) {
                /* translators: %s: WordPress version. */
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %s: 100%% (according to its author)'), $core_update_version);
            } else {
                /* translators: %s: WordPress version. */
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %s: Unknown'), $core_update_version);
            }
        }
        $requires_php = isset($plugin_data->update->requires_php) ? $plugin_data->update->requires_php : null;
        $compatible_php = is_php_version_compatible($requires_php);
        if (!$compatible_php && current_user_can('update_php')) {
            $compat .= '<br>' . __('This update doesn&#8217;t work with your version of PHP.') . '&nbsp;';
            $compat .= sprintf(
                /* translators: %s: URL to Update PHP page. */
                __('<a href="%s">Learn more about updating PHP</a>.'),
                esc_url(wp_get_update_php_url())
            );
            $annotation = wp_get_update_php_annotation();
            if ($annotation) {
                $compat .= '</p><p><em>' . $annotation . '</em>';
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details = sprintf(
            '<a href="%1$s" class="thickbox open-plugin-details-modal" aria-label="%2$s">%3$s</a>',
            esc_url($details_url),
            /* translators: 1: Plugin name, 2: Version number. */
            esc_attr(sprintf(__('View %1$s version %2$s details'), $plugin_data->Name, $plugin_data->update->new_version)),
            /* translators: %s: Plugin version. */
            sprintf(__('View version %s details.'), $plugin_data->update->new_version)
        );
        $checkbox_id = 'checkbox_' . md5($plugin_file);
        ?>
	<tr>
		<td class="check-column">
			<?php 
        if ($compatible_php) {
            ?>
				<input type="checkbox" name="checked[]" id="<?php 
            echo $checkbox_id;
            ?>" value="<?php 
            echo esc_attr($plugin_file);
            ?>" />
				<label for="<?php 
            echo $checkbox_id;
            ?>" class="screen-reader-text">
					<?php 
            /* translators: %s: Plugin name. */
            printf(__('Select %s'), $plugin_data->Name);
            ?>
				</label>
			<?php 
        }
        ?>
		</td>
		<td class="plugin-title"><p>
			<?php 
        echo $icon;
        ?>
			<strong><?php 
        echo $plugin_data->Name;
        ?></strong>
			<?php 
        printf(
            /* translators: 1: Plugin version, 2: New version. */
            __('You have version %1$s installed. Update to %2$s.'),
            $plugin_data->Version,
            $plugin_data->update->new_version
        );
        echo ' ' . $details . $compat . $upgrade_notice;
        if (in_array($plugin_file, $auto_updates, true)) {
            echo $auto_update_notice;
        }
        ?>
		</p></td>
	</tr>
			<?php 
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<td class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
	<?php 
}

WordPress Version: 5.6

/**
 * Display the upgrade plugins form.
 *
 * @since 2.9.0
 */
function list_plugin_updates()
{
    $wp_version = get_bloginfo('version');
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h2>' . __('Plugins') . '</h2>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' === $core_updates[0]->response || 'development' === $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h2><?php 
    _e('Plugins');
    ?></h2>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
	<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat updates-table" id="update-plugins-table">
	<thead>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<td class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</thead>

	<tbody class="plugins">
	<?php 
    $auto_updates = array();
    if (wp_is_auto_update_enabled_for_type('plugin')) {
        $auto_updates = (array) get_site_option('auto_update_plugins', array());
        $auto_update_notice = ' | ' . wp_get_auto_update_message();
    }
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $icon = '<span class="dashicons dashicons-admin-plugins"></span>';
        $preferred_icons = array('svg', '2x', '1x', 'default');
        foreach ($preferred_icons as $preferred_icon) {
            if (!empty($plugin_data->update->icons[$preferred_icon])) {
                $icon = '<img src="' . esc_url($plugin_data->update->icons[$preferred_icon]) . '" alt="" />';
                break;
            }
        }
        // Get plugin compat for running version of WordPress.
        if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $cur_wp_version, '>=')) {
            /* translators: %s: WordPress version. */
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %s: 100%% (according to its author)'), $cur_wp_version);
        } else {
            /* translators: %s: WordPress version. */
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $core_update_version, '>=')) {
                /* translators: %s: WordPress version. */
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %s: 100%% (according to its author)'), $core_update_version);
            } else {
                /* translators: %s: WordPress version. */
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %s: Unknown'), $core_update_version);
            }
        }
        $requires_php = isset($plugin_data->update->requires_php) ? $plugin_data->update->requires_php : null;
        $compatible_php = is_php_version_compatible($requires_php);
        if (!$compatible_php && current_user_can('update_php')) {
            $compat .= '<br>' . __('This update doesn&#8217;t work with your version of PHP.') . '&nbsp;';
            $compat .= sprintf(
                /* translators: %s: URL to Update PHP page. */
                __('<a href="%s">Learn more about updating PHP</a>.'),
                esc_url(wp_get_update_php_url())
            );
            $annotation = wp_get_update_php_annotation();
            if ($annotation) {
                $compat .= '</p><p><em>' . $annotation . '</em>';
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details = sprintf(
            '<a href="%1$s" class="thickbox open-plugin-details-modal" aria-label="%2$s">%3$s</a>',
            esc_url($details_url),
            /* translators: 1: Plugin name, 2: Version number. */
            esc_attr(sprintf(__('View %1$s version %2$s details'), $plugin_data->Name, $plugin_data->update->new_version)),
            /* translators: %s: Plugin version. */
            sprintf(__('View version %s details.'), $plugin_data->update->new_version)
        );
        $checkbox_id = 'checkbox_' . md5($plugin_file);
        ?>
	<tr>
		<td class="check-column">
			<?php 
        if ($compatible_php) {
            ?>
				<input type="checkbox" name="checked[]" id="<?php 
            echo $checkbox_id;
            ?>" value="<?php 
            echo esc_attr($plugin_file);
            ?>" />
				<label for="<?php 
            echo $checkbox_id;
            ?>" class="screen-reader-text">
					<?php 
            /* translators: %s: Plugin name. */
            printf(__('Select %s'), $plugin_data->Name);
            ?>
				</label>
			<?php 
        }
        ?>
		</td>
		<td class="plugin-title"><p>
			<?php 
        echo $icon;
        ?>
			<strong><?php 
        echo $plugin_data->Name;
        ?></strong>
			<?php 
        printf(
            /* translators: 1: Plugin version, 2: New version. */
            __('You have version %1$s installed. Update to %2$s.'),
            $plugin_data->Version,
            $plugin_data->update->new_version
        );
        echo ' ' . $details . $compat . $upgrade_notice;
        if (in_array($plugin_file, $auto_updates, true)) {
            echo $auto_update_notice;
        }
        ?>
		</p></td>
	</tr>
			<?php 
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<td class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
	<?php 
}

WordPress Version: 5.5

/**
 * Display the upgrade plugins form.
 *
 * @since 2.9.0
 */
function list_plugin_updates()
{
    $wp_version = get_bloginfo('version');
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h2>' . __('Plugins') . '</h2>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' === $core_updates[0]->response || 'development' === $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h2><?php 
    _e('Plugins');
    ?></h2>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
	<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat updates-table" id="update-plugins-table">
	<thead>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<td class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</thead>

	<tbody class="plugins">
	<?php 
    $auto_updates = array();
    if (wp_is_auto_update_enabled_for_type('plugin')) {
        $auto_updates = (array) get_site_option('auto_update_plugins', array());
        $auto_update_notice = ' | ' . wp_get_auto_update_message();
    }
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $icon = '<span class="dashicons dashicons-admin-plugins"></span>';
        $preferred_icons = array('svg', '2x', '1x', 'default');
        foreach ($preferred_icons as $preferred_icon) {
            if (!empty($plugin_data->update->icons[$preferred_icon])) {
                $icon = '<img src="' . esc_url($plugin_data->update->icons[$preferred_icon]) . '" alt="" />';
                break;
            }
        }
        // Get plugin compat for running version of WordPress.
        if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $cur_wp_version, '>=')) {
            /* translators: %s: WordPress version. */
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %s: 100%% (according to its author)'), $cur_wp_version);
        } else {
            /* translators: %s: WordPress version. */
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $core_update_version, '>=')) {
                /* translators: %s: WordPress version. */
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %s: 100%% (according to its author)'), $core_update_version);
            } else {
                /* translators: %s: WordPress version. */
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %s: Unknown'), $core_update_version);
            }
        }
        $requires_php = isset($plugin_data->update->requires_php) ? $plugin_data->update->requires_php : null;
        $compatible_php = is_php_version_compatible($requires_php);
        if (!$compatible_php && current_user_can('update_php')) {
            $compat .= '<br>' . __('This update doesn&#8217;t work with your version of PHP.') . '&nbsp;';
            $compat .= sprintf(
                /* translators: %s: URL to Update PHP page. */
                __('<a href="%s">Learn more about updating PHP</a>.'),
                esc_url(wp_get_update_php_url())
            );
            $annotation = wp_get_update_php_annotation();
            if ($annotation) {
                $compat .= '</p><p><em>' . $annotation . '</em>';
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details = sprintf(
            '<a href="%1$s" class="thickbox open-plugin-details-modal" aria-label="%2$s">%3$s</a>',
            esc_url($details_url),
            /* translators: 1: Plugin name, 2: Version number. */
            esc_attr(sprintf(__('View %1$s version %2$s details'), $plugin_data->Name, $plugin_data->update->new_version)),
            /* translators: %s: Plugin version. */
            sprintf(__('View version %s details.'), $plugin_data->update->new_version)
        );
        $checkbox_id = 'checkbox_' . md5($plugin_data->Name);
        ?>
	<tr>
		<td class="check-column">
			<?php 
        if ($compatible_php) {
            ?>
				<input type="checkbox" name="checked[]" id="<?php 
            echo $checkbox_id;
            ?>" value="<?php 
            echo esc_attr($plugin_file);
            ?>" />
				<label for="<?php 
            echo $checkbox_id;
            ?>" class="screen-reader-text">
					<?php 
            /* translators: %s: Plugin name. */
            printf(__('Select %s'), $plugin_data->Name);
            ?>
				</label>
			<?php 
        }
        ?>
		</td>
		<td class="plugin-title"><p>
			<?php 
        echo $icon;
        ?>
			<strong><?php 
        echo $plugin_data->Name;
        ?></strong>
			<?php 
        printf(
            /* translators: 1: Plugin version, 2: New version. */
            __('You have version %1$s installed. Update to %2$s.'),
            $plugin_data->Version,
            $plugin_data->update->new_version
        );
        echo ' ' . $details . $compat . $upgrade_notice;
        if (in_array($plugin_file, $auto_updates, true)) {
            echo $auto_update_notice;
        }
        ?>
		</p></td>
	</tr>
			<?php 
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<td class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
	<?php 
}

WordPress Version: 5.4

/**
 * Display the upgrade plugins form.
 *
 * @since 2.9.0
 */
function list_plugin_updates()
{
    $wp_version = get_bloginfo('version');
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h2>' . __('Plugins') . '</h2>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' === $core_updates[0]->response || 'development' === $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h2><?php 
    _e('Plugins');
    ?></h2>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
	<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat updates-table" id="update-plugins-table">
	<thead>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<td class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</thead>

	<tbody class="plugins">
	<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $icon = '<span class="dashicons dashicons-admin-plugins"></span>';
        $preferred_icons = array('svg', '2x', '1x', 'default');
        foreach ($preferred_icons as $preferred_icon) {
            if (!empty($plugin_data->update->icons[$preferred_icon])) {
                $icon = '<img src="' . esc_url($plugin_data->update->icons[$preferred_icon]) . '" alt="" />';
                break;
            }
        }
        // Get plugin compat for running version of WordPress.
        if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $cur_wp_version, '>=')) {
            /* translators: %s: WordPress version. */
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %s: 100%% (according to its author)'), $cur_wp_version);
        } else {
            /* translators: %s: WordPress version. */
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $core_update_version, '>=')) {
                /* translators: %s: WordPress version. */
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %s: 100%% (according to its author)'), $core_update_version);
            } else {
                /* translators: %s: WordPress version. */
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %s: Unknown'), $core_update_version);
            }
        }
        $requires_php = isset($plugin_data->update->requires_php) ? $plugin_data->update->requires_php : null;
        $compatible_php = is_php_version_compatible($requires_php);
        if (!$compatible_php && current_user_can('update_php')) {
            $compat .= '<br>' . __('This update doesn&#8217;t work with your version of PHP.') . '&nbsp;';
            $compat .= sprintf(
                /* translators: %s: URL to Update PHP page. */
                __('<a href="%s">Learn more about updating PHP</a>.'),
                esc_url(wp_get_update_php_url())
            );
            $annotation = wp_get_update_php_annotation();
            if ($annotation) {
                $compat .= '</p><p><em>' . $annotation . '</em>';
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details = sprintf(
            '<a href="%1$s" class="thickbox open-plugin-details-modal" aria-label="%2$s">%3$s</a>',
            esc_url($details_url),
            /* translators: 1: Plugin name, 2: Version number. */
            esc_attr(sprintf(__('View %1$s version %2$s details'), $plugin_data->Name, $plugin_data->update->new_version)),
            /* translators: %s: Plugin version. */
            sprintf(__('View version %s details.'), $plugin_data->update->new_version)
        );
        $checkbox_id = 'checkbox_' . md5($plugin_data->Name);
        ?>
	<tr>
		<td class="check-column">
		<?php 
        if ($compatible_php) {
            ?>
			<input type="checkbox" name="checked[]" id="<?php 
            echo $checkbox_id;
            ?>" value="<?php 
            echo esc_attr($plugin_file);
            ?>" />
			<label for="<?php 
            echo $checkbox_id;
            ?>" class="screen-reader-text">
				<?php 
            /* translators: %s: Plugin name. */
            printf(__('Select %s'), $plugin_data->Name);
            ?>
			</label>
		<?php 
        }
        ?>
		</td>
		<td class="plugin-title"><p>
			<?php 
        echo $icon;
        ?>
			<strong><?php 
        echo $plugin_data->Name;
        ?></strong>
			<?php 
        printf(
            /* translators: 1: Plugin version, 2: New version. */
            __('You have version %1$s installed. Update to %2$s.'),
            $plugin_data->Version,
            $plugin_data->update->new_version
        );
        echo ' ' . $details . $compat . $upgrade_notice;
        ?>
		</p></td>
	</tr>
		<?php 
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<td class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
	<?php 
}

WordPress Version: 5.3

/**
 * Display the upgrade plugins form.
 *
 * @since 2.9.0
 */
function list_plugin_updates()
{
    $wp_version = get_bloginfo('version');
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h2>' . __('Plugins') . '</h2>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h2><?php 
    _e('Plugins');
    ?></h2>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
	<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat updates-table" id="update-plugins-table">
	<thead>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<td class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</thead>

	<tbody class="plugins">
	<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $icon = '<span class="dashicons dashicons-admin-plugins"></span>';
        $preferred_icons = array('svg', '2x', '1x', 'default');
        foreach ($preferred_icons as $preferred_icon) {
            if (!empty($plugin_data->update->icons[$preferred_icon])) {
                $icon = '<img src="' . esc_url($plugin_data->update->icons[$preferred_icon]) . '" alt="" />';
                break;
            }
        }
        // Get plugin compat for running version of WordPress.
        if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $cur_wp_version, '>=')) {
            /* translators: %s: WordPress version. */
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %s: 100%% (according to its author)'), $cur_wp_version);
        } else {
            /* translators: %s: WordPress version. */
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $core_update_version, '>=')) {
                /* translators: %s: WordPress version. */
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %s: 100%% (according to its author)'), $core_update_version);
            } else {
                /* translators: %s: WordPress version. */
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %s: Unknown'), $core_update_version);
            }
        }
        $requires_php = isset($plugin_data->update->requires_php) ? $plugin_data->update->requires_php : null;
        $compatible_php = is_php_version_compatible($requires_php);
        if (!$compatible_php && current_user_can('update_php')) {
            $compat .= '<br>' . __('This update doesn&#8217;t work with your version of PHP.') . '&nbsp;';
            $compat .= sprintf(
                /* translators: %s: URL to Update PHP page. */
                __('<a href="%s">Learn more about updating PHP</a>.'),
                esc_url(wp_get_update_php_url())
            );
            $annotation = wp_get_update_php_annotation();
            if ($annotation) {
                $compat .= '</p><p><em>' . $annotation . '</em>';
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details = sprintf(
            '<a href="%1$s" class="thickbox open-plugin-details-modal" aria-label="%2$s">%3$s</a>',
            esc_url($details_url),
            /* translators: 1: Plugin name, 2: Version number. */
            esc_attr(sprintf(__('View %1$s version %2$s details'), $plugin_data->Name, $plugin_data->update->new_version)),
            /* translators: %s: Plugin version. */
            sprintf(__('View version %s details.'), $plugin_data->update->new_version)
        );
        $checkbox_id = 'checkbox_' . md5($plugin_data->Name);
        ?>
	<tr>
		<td class="check-column">
		<?php 
        if ($compatible_php) {
            ?>
			<input type="checkbox" name="checked[]" id="<?php 
            echo $checkbox_id;
            ?>" value="<?php 
            echo esc_attr($plugin_file);
            ?>" />
			<label for="<?php 
            echo $checkbox_id;
            ?>" class="screen-reader-text">
				<?php 
            /* translators: %s: Plugin name. */
            printf(__('Select %s'), $plugin_data->Name);
            ?>
			</label>
		<?php 
        }
        ?>
		</td>
		<td class="plugin-title"><p>
			<?php 
        echo $icon;
        ?>
			<strong><?php 
        echo $plugin_data->Name;
        ?></strong>
			<?php 
        printf(
            /* translators: 1: Plugin version, 2: New version. */
            __('You have version %1$s installed. Update to %2$s.'),
            $plugin_data->Version,
            $plugin_data->update->new_version
        );
        echo ' ' . $details . $compat . $upgrade_notice;
        ?>
		</p></td>
	</tr>
		<?php 
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<td class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
	<?php 
}

WordPress Version: 5.2

function list_plugin_updates()
{
    $wp_version = get_bloginfo('version');
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h2>' . __('Plugins') . '</h2>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h2><?php 
    _e('Plugins');
    ?></h2>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
	<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat updates-table" id="update-plugins-table">
	<thead>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<td class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</thead>

	<tbody class="plugins">
	<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $icon = '<span class="dashicons dashicons-admin-plugins"></span>';
        $preferred_icons = array('svg', '2x', '1x', 'default');
        foreach ($preferred_icons as $preferred_icon) {
            if (!empty($plugin_data->update->icons[$preferred_icon])) {
                $icon = '<img src="' . esc_url($plugin_data->update->icons[$preferred_icon]) . '" alt="" />';
                break;
            }
        }
        // Get plugin compat for running version of WordPress.
        if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $core_update_version, '>=')) {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $core_update_version);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        $requires_php = isset($plugin_data->update->requires_php) ? $plugin_data->update->requires_php : null;
        $compatible_php = is_php_version_compatible($requires_php);
        if (!$compatible_php && current_user_can('update_php')) {
            $compat .= '<br>' . __('This update doesn&#8217;t work with your version of PHP.') . '&nbsp;';
            /* translators: %s: Update PHP page URL */
            $compat .= sprintf(__('<a href="%s">Learn more about updating PHP</a>.'), esc_url(wp_get_update_php_url()));
            $annotation = wp_get_update_php_annotation();
            if ($annotation) {
                $compat .= '</p><p><em>' . $annotation . '</em>';
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details = sprintf(
            '<a href="%1$s" class="thickbox open-plugin-details-modal" aria-label="%2$s">%3$s</a>',
            esc_url($details_url),
            /* translators: 1: plugin name, 2: version number */
            esc_attr(sprintf(__('View %1$s version %2$s details'), $plugin_data->Name, $plugin_data->update->new_version)),
            /* translators: %s: plugin version */
            sprintf(__('View version %s details.'), $plugin_data->update->new_version)
        );
        $checkbox_id = 'checkbox_' . md5($plugin_data->Name);
        ?>
	<tr>
		<td class="check-column">
		<?php 
        if ($compatible_php) {
            ?>
			<input type="checkbox" name="checked[]" id="<?php 
            echo $checkbox_id;
            ?>" value="<?php 
            echo esc_attr($plugin_file);
            ?>" />
			<label for="<?php 
            echo $checkbox_id;
            ?>" class="screen-reader-text">
			<?php 
            /* translators: %s: plugin name */
            printf(__('Select %s'), $plugin_data->Name);
            ?>
			</label>
		<?php 
        }
        ?>
		</td>
		<td class="plugin-title"><p>
			<?php 
        echo $icon;
        ?>
			<strong><?php 
        echo $plugin_data->Name;
        ?></strong>
			<?php 
        /* translators: 1: plugin version, 2: new version */
        printf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version);
        echo ' ' . $details . $compat . $upgrade_notice;
        ?>
		</p></td>
	</tr>
		<?php 
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<td class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
	<?php 
}

WordPress Version: 5.1

function list_plugin_updates()
{
    $wp_version = get_bloginfo('version');
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h2>' . __('Plugins') . '</h2>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h2><?php 
    _e('Plugins');
    ?></h2>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
	<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat updates-table" id="update-plugins-table">
	<thead>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<td class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</thead>

	<tbody class="plugins">
	<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $icon = '<span class="dashicons dashicons-admin-plugins"></span>';
        $preferred_icons = array('svg', '2x', '1x', 'default');
        foreach ($preferred_icons as $preferred_icon) {
            if (!empty($plugin_data->update->icons[$preferred_icon])) {
                $icon = '<img src="' . esc_url($plugin_data->update->icons[$preferred_icon]) . '" alt="" />';
                break;
            }
        }
        // Get plugin compat for running version of WordPress.
        if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $core_update_version, '>=')) {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $core_update_version);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details = sprintf(
            '<a href="%1$s" class="thickbox open-plugin-details-modal" aria-label="%2$s">%3$s</a>',
            esc_url($details_url),
            /* translators: 1: plugin name, 2: version number */
            esc_attr(sprintf(__('View %1$s version %2$s details'), $plugin_data->Name, $plugin_data->update->new_version)),
            /* translators: %s: plugin version */
            sprintf(__('View version %s details.'), $plugin_data->update->new_version)
        );
        $checkbox_id = 'checkbox_' . md5($plugin_data->Name);
        ?>
	<tr>
		<td class="check-column">
			<input type="checkbox" name="checked[]" id="<?php 
        echo $checkbox_id;
        ?>" value="<?php 
        echo esc_attr($plugin_file);
        ?>" />
			<label for="<?php 
        echo $checkbox_id;
        ?>" class="screen-reader-text">
			<?php 
        /* translators: %s: plugin name */
        printf(__('Select %s'), $plugin_data->Name);
        ?>
			</label>
		</td>
		<td class="plugin-title"><p>
				<?php 
        echo $icon;
        ?>
			<strong><?php 
        echo $plugin_data->Name;
        ?></strong>
			<?php 
        /* translators: 1: plugin version, 2: new version */
        printf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version);
        echo ' ' . $details . $compat . $upgrade_notice;
        ?>
		</p></td>
	</tr>
			<?php 
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<td class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
	<?php 
}

WordPress Version: 4.9

function list_plugin_updates()
{
    $wp_version = get_bloginfo('version');
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h2>' . __('Plugins') . '</h2>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h2><?php 
    _e('Plugins');
    ?></h2>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat updates-table" id="update-plugins-table">
	<thead>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<td class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $icon = '<span class="dashicons dashicons-admin-plugins"></span>';
        $preferred_icons = array('svg', '1x', '2x', 'default');
        foreach ($preferred_icons as $preferred_icon) {
            if (!empty($plugin_data->update->icons[$preferred_icon])) {
                $icon = '<img src="' . esc_url($plugin_data->update->icons[$preferred_icon]) . '" alt="" />';
                break;
            }
        }
        // Get plugin compat for running version of WordPress.
        if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($plugin_data->update->compatibility->{$cur_wp_version})) {
            $compat = $plugin_data->update->compatibility->{$cur_wp_version};
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat->percent, $compat->votes, $compat->total_votes);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $core_update_version, '>=')) {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $core_update_version);
            } elseif (isset($plugin_data->update->compatibility->{$core_update_version})) {
                $update_compat = $plugin_data->update->compatibility->{$core_update_version};
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat->percent, $update_compat->votes, $update_compat->total_votes);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details = sprintf(
            '<a href="%1$s" class="thickbox open-plugin-details-modal" aria-label="%2$s">%3$s</a>',
            esc_url($details_url),
            /* translators: 1: plugin name, 2: version number */
            esc_attr(sprintf(__('View %1$s version %2$s details'), $plugin_data->Name, $plugin_data->update->new_version)),
            /* translators: %s: plugin version */
            sprintf(__('View version %s details.'), $plugin_data->update->new_version)
        );
        $checkbox_id = "checkbox_" . md5($plugin_data->Name);
        ?>
		<tr>
			<td class="check-column">
				<input type="checkbox" name="checked[]" id="<?php 
        echo $checkbox_id;
        ?>" value="<?php 
        echo esc_attr($plugin_file);
        ?>" />
				<label for="<?php 
        echo $checkbox_id;
        ?>" class="screen-reader-text"><?php 
        /* translators: %s: plugin name */
        printf(__('Select %s'), $plugin_data->Name);
        ?></label>
			</td>
			<td class="plugin-title"><p>
				<?php 
        echo $icon;
        ?>
				<strong><?php 
        echo $plugin_data->Name;
        ?></strong>
				<?php 
        /* translators: 1: plugin version, 2: new version */
        printf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version);
        echo ' ' . $details . $compat . $upgrade_notice;
        ?>
			</p></td>
		</tr>
		<?php 
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<td class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 7.1

function list_plugin_updates()
{
    $wp_version = get_bloginfo('version');
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h2>' . __('Plugins') . '</h2>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h2><?php 
    _e('Plugins');
    ?></h2>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat updates-table" id="update-plugins-table">
	<thead>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<td class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        // Get plugin compat for running version of WordPress.
        if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($plugin_data->update->compatibility->{$cur_wp_version})) {
            $compat = $plugin_data->update->compatibility->{$cur_wp_version};
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat->percent, $compat->votes, $compat->total_votes);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $core_update_version, '>=')) {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $core_update_version);
            } elseif (isset($plugin_data->update->compatibility->{$core_update_version})) {
                $update_compat = $plugin_data->update->compatibility->{$core_update_version};
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat->percent, $update_compat->votes, $update_compat->total_votes);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details = sprintf(
            '<a href="%1$s" class="thickbox open-plugin-details-modal" aria-label="%2$s">%3$s</a>',
            esc_url($details_url),
            /* translators: 1: plugin name, 2: version number */
            esc_attr(sprintf(__('View %1$s version %2$s details'), $plugin_data->Name, $plugin_data->update->new_version)),
            /* translators: %s: plugin version */
            sprintf(__('View version %s details.'), $plugin_data->update->new_version)
        );
        $checkbox_id = "checkbox_" . md5($plugin_data->Name);
        ?>
		<tr>
			<td class="check-column">
				<input type="checkbox" name="checked[]" id="<?php 
        echo $checkbox_id;
        ?>" value="<?php 
        echo esc_attr($plugin_file);
        ?>" />
				<label for="<?php 
        echo $checkbox_id;
        ?>" class="screen-reader-text"><?php 
        /* translators: %s: plugin name */
        printf(__('Select %s'), $plugin_data->Name);
        ?></label>
			</td>
			<td class="plugin-title"><p>
				<strong><?php 
        echo $plugin_data->Name;
        ?></strong>
				<?php 
        /* translators: 1: plugin version, 2: new version */
        printf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version);
        echo ' ' . $details . $compat . $upgrade_notice;
        ?>
			</p></td>
		</tr>
		<?php 
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<td class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 4.7

function list_plugin_updates()
{
    $wp_version = get_bloginfo('version');
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h2>' . __('Plugins') . '</h2>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h2><?php 
    _e('Plugins');
    ?></h2>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat updates-table" id="update-plugins-table">
	<thead>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<td class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        // Get plugin compat for running version of WordPress.
        if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($plugin_data->update->compatibility->{$cur_wp_version})) {
            $compat = $plugin_data->update->compatibility->{$cur_wp_version};
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat->percent, $compat->votes, $compat->total_votes);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $core_update_version, '>=')) {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $core_update_version);
            } elseif (isset($plugin_data->update->compatibility->{$core_update_version})) {
                $update_compat = $plugin_data->update->compatibility->{$core_update_version};
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat->percent, $update_compat->votes, $update_compat->total_votes);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details = sprintf(
            '<a href="%1$s" class="thickbox open-plugin-details-modal" aria-label="%2$s">%3$s</a>',
            esc_url($details_url),
            /* translators: 1: plugin name, 2: version number */
            esc_attr(sprintf(__('View %1$s version %2$s details'), $plugin_data->Name, $plugin_data->update->new_version)),
            /* translators: %s: plugin version */
            sprintf(__('View version %s details.'), $plugin_data->update->new_version)
        );
        $checkbox_id = "checkbox_" . md5($plugin_data->Name);
        ?>
		<tr>
			<td class="check-column">
				<input type="checkbox" name="checked[]" id="<?php 
        echo $checkbox_id;
        ?>" value="<?php 
        echo esc_attr($plugin_file);
        ?>" />
				<label for="<?php 
        echo $checkbox_id;
        ?>" class="screen-reader-text"><?php 
        /* translators: %s: plugin name */
        printf(__('Select %s'), $plugin_data->Name);
        ?></label>
			</td>
			<td class="plugin-title"><p>
				<strong><?php 
        echo $plugin_data->Name;
        ?></strong>
				<?php 
        /* translators: 1: plugin version, 2: new version */
        printf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version);
        echo ' ' . $details . $compat . $upgrade_notice;
        ?>
			</p></td>
		</tr>
		<?php 
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<td class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: .10

/**
 *
 * @global string $wp_version
 */
function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h2>' . __('Plugins') . '</h2>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h2><?php 
    _e('Plugins');
    ?></h2>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat updates-table" id="update-plugins-table">
	<thead>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<td class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        // Get plugin compat for running version of WordPress.
        if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($plugin_data->update->compatibility->{$cur_wp_version})) {
            $compat = $plugin_data->update->compatibility->{$cur_wp_version};
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat->percent, $compat->votes, $compat->total_votes);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $core_update_version, '>=')) {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $core_update_version);
            } elseif (isset($plugin_data->update->compatibility->{$core_update_version})) {
                $update_compat = $plugin_data->update->compatibility->{$core_update_version};
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat->percent, $update_compat->votes, $update_compat->total_votes);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details = sprintf(
            '<a href="%1$s" class="thickbox open-plugin-details-modal" aria-label="%2$s">%3$s</a>',
            esc_url($details_url),
            /* translators: 1: plugin name, 2: version number */
            esc_attr(sprintf(__('View %1$s version %2$s details'), $plugin_data->Name, $plugin_data->update->new_version)),
            /* translators: %s: plugin version */
            sprintf(__('View version %s details.'), $plugin_data->update->new_version)
        );
        $checkbox_id = "checkbox_" . md5($plugin_data->Name);
        ?>
		<tr>
			<td class="check-column">
				<input type="checkbox" name="checked[]" id="<?php 
        echo $checkbox_id;
        ?>" value="<?php 
        echo esc_attr($plugin_file);
        ?>" />
				<label for="<?php 
        echo $checkbox_id;
        ?>" class="screen-reader-text"><?php 
        /* translators: %s: plugin name */
        printf(__('Select %s'), $plugin_data->Name);
        ?></label>
			</td>
			<td class="plugin-title"><p>
				<strong><?php 
        echo $plugin_data->Name;
        ?></strong>
				<?php 
        /* translators: 1: plugin version, 2: new version */
        printf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version);
        echo ' ' . $details . $compat . $upgrade_notice;
        ?>
			</p></td>
		</tr>
		<?php 
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<td class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 4.6

/**
 *
 * @global string $wp_version
 */
function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h2>' . __('Plugins') . '</h2>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h2><?php 
    _e('Plugins');
    ?></h2>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat updates-table" id="update-plugins-table">
	<thead>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<td class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        // Get plugin compat for running version of WordPress.
        if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($plugin_data->update->compatibility->{$cur_wp_version})) {
            $compat = $plugin_data->update->compatibility->{$cur_wp_version};
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat->percent, $compat->votes, $compat->total_votes);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $core_update_version, '>=')) {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $core_update_version);
            } elseif (isset($plugin_data->update->compatibility->{$core_update_version})) {
                $update_compat = $plugin_data->update->compatibility->{$core_update_version};
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat->percent, $update_compat->votes, $update_compat->total_votes);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details = sprintf(
            '<a href="%1$s" class="thickbox open-plugin-details-modal" aria-label="%2$s">%3$s</a>',
            esc_url($details_url),
            /* translators: 1: plugin name, 2: version number */
            esc_attr(sprintf(__('View %1$s version %2$s details'), $plugin_data->Name, $plugin_data->update->new_version)),
            /* translators: %s: plugin version */
            sprintf(__('View version %s details.'), $plugin_data->update->new_version)
        );
        $checkbox_id = "checkbox_" . md5($plugin_data->Name);
        ?>
		<tr>
			<td class="check-column">
				<input type="checkbox" name="checked[]" id="<?php 
        echo $checkbox_id;
        ?>" value="<?php 
        echo esc_attr($plugin_file);
        ?>" />
				<label for="<?php 
        echo $checkbox_id;
        ?>" class="screen-reader-text"><?php 
        /* translators: %s: plugin name */
        printf(__('Select %s'), $plugin_data->Name);
        ?></label>
			</td>
			<td class="plugin-title"><p>
				<strong><?php 
        echo $plugin_data->Name;
        ?></strong>
				<?php 
        /* translators: 1: plugin version, 2: new version */
        printf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version);
        echo ' ' . $details . $compat . $upgrade_notice;
        ?>
			</p></td>
		</tr>
		<?php 
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<td class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 5.5

/**
 *
 * @global string $wp_version
 */
function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h2>' . __('Plugins') . '</h2>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h2><?php 
    _e('Plugins');
    ?></h2>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat updates-table" id="update-plugins-table">
	<thead>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<td class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        // Get plugin compat for running version of WordPress.
        if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($plugin_data->update->compatibility->{$cur_wp_version})) {
            $compat = $plugin_data->update->compatibility->{$cur_wp_version};
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat->percent, $compat->votes, $compat->total_votes);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $core_update_version, '>=')) {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $core_update_version);
            } elseif (isset($plugin_data->update->compatibility->{$core_update_version})) {
                $update_compat = $plugin_data->update->compatibility->{$core_update_version};
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat->percent, $update_compat->votes, $update_compat->total_votes);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details = sprintf(
            '<a href="%1$s" class="thickbox open-plugin-details-modal" aria-label="%2$s">%3$s</a>',
            esc_url($details_url),
            /* translators: 1: plugin name, 2: version number */
            esc_attr(sprintf(__('View %1$s version %2$s details'), $plugin_data->Name, $plugin_data->update->new_version)),
            /* translators: %s: plugin version */
            sprintf(__('View version %s details.'), $plugin_data->update->new_version)
        );
        $checkbox_id = "checkbox_" . md5($plugin_data->Name);
        ?>
		<tr>
			<td class="check-column">
				<input type="checkbox" name="checked[]" id="<?php 
        echo $checkbox_id;
        ?>" value="<?php 
        echo esc_attr($plugin_file);
        ?>" />
				<label for="<?php 
        echo $checkbox_id;
        ?>" class="screen-reader-text"><?php 
        /* translators: %s: plugin name */
        printf(__('Select %s'), $plugin_data->Name);
        ?></label>
			</td>
			<td class="plugin-title"><p>
				<strong><?php 
        echo $plugin_data->Name;
        ?></strong>
				<?php 
        /* translators: 1: plugin version, 2: new version */
        printf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version);
        echo ' ' . $details . $compat . $upgrade_notice;
        ?>
			</p></td>
		</tr>
		<?php 
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<td class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 5.4

/**
 *
 * @global string $wp_version
 */
function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h2>' . __('Plugins') . '</h2>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h2><?php 
    _e('Plugins');
    ?></h2>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat updates-table" id="update-plugins-table">
	<thead>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<td class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        // Get plugin compat for running version of WordPress.
        if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($plugin_data->update->compatibility->{$cur_wp_version})) {
            $compat = $plugin_data->update->compatibility->{$cur_wp_version};
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat->percent, $compat->votes, $compat->total_votes);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $core_update_version, '>=')) {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $core_update_version);
            } elseif (isset($plugin_data->update->compatibility->{$core_update_version})) {
                $update_compat = $plugin_data->update->compatibility->{$core_update_version};
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat->percent, $update_compat->votes, $update_compat->total_votes);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details = sprintf(
            '<a href="%1$s" class="thickbox open-plugin-details-modal" aria-label="%2$s">%3$s</a>',
            esc_url($details_url),
            /* translators: 1: plugin name, 2: version number */
            esc_attr(sprintf(__('View %1$s version %2$s details'), $plugin_data->Name, $plugin_data->update->new_version)),
            /* translators: %s: plugin version */
            sprintf(__('View version %s details.'), $plugin_data->update->new_version)
        );
        $checkbox_id = "checkbox_" . md5($plugin_data->Name);
        ?>
		<tr>
			<td class="check-column">
				<input type="checkbox" name="checked[]" id="<?php 
        echo $checkbox_id;
        ?>" value="<?php 
        echo esc_attr($plugin_file);
        ?>" />
				<label for="<?php 
        echo $checkbox_id;
        ?>" class="screen-reader-text"><?php 
        /* translators: %s: plugin name */
        printf(__('Select %s'), $plugin_data->Name);
        ?></label>
			</td>
			<td class="plugin-title"><p>
				<strong><?php 
        echo $plugin_data->Name;
        ?></strong>
				<?php 
        /* translators: 1: plugin version, 2: new version */
        printf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version);
        echo ' ' . $details . $compat . $upgrade_notice;
        ?>
			</p></td>
		</tr>
		<?php 
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<td class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: .30

/**
 *
 * @global string $wp_version
 */
function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h2>' . __('Plugins') . '</h2>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h2><?php 
    _e('Plugins');
    ?></h2>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat updates-table" id="update-plugins-table">
	<thead>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<td class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        // Get plugin compat for running version of WordPress.
        if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($plugin_data->update->compatibility->{$cur_wp_version})) {
            $compat = $plugin_data->update->compatibility->{$cur_wp_version};
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat->percent, $compat->votes, $compat->total_votes);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $core_update_version, '>=')) {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $core_update_version);
            } elseif (isset($plugin_data->update->compatibility->{$core_update_version})) {
                $update_compat = $plugin_data->update->compatibility->{$core_update_version};
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat->percent, $update_compat->votes, $update_compat->total_votes);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details = sprintf(
            '<a href="%1$s" class="thickbox open-plugin-details-modal" aria-label="%2$s">%3$s</a>',
            esc_url($details_url),
            /* translators: 1: plugin name, 2: version number */
            esc_attr(sprintf(__('View %1$s version %2$s details'), $plugin_data->Name, $plugin_data->update->new_version)),
            /* translators: %s: plugin version */
            sprintf(__('View version %s details.'), $plugin_data->update->new_version)
        );
        $checkbox_id = "checkbox_" . md5($plugin_data->Name);
        ?>
		<tr>
			<td class="check-column">
				<input type="checkbox" name="checked[]" id="<?php 
        echo $checkbox_id;
        ?>" value="<?php 
        echo esc_attr($plugin_file);
        ?>" />
				<label for="<?php 
        echo $checkbox_id;
        ?>" class="screen-reader-text"><?php 
        /* translators: %s: plugin name */
        printf(__('Select %s'), $plugin_data->Name);
        ?></label>
			</td>
			<td class="plugin-title"><p>
				<strong><?php 
        echo $plugin_data->Name;
        ?></strong>
				<?php 
        /* translators: 1: plugin version, 2: new version */
        printf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version);
        echo ' ' . $details . $compat . $upgrade_notice;
        ?>
			</p></td>
		</tr>
		<?php 
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<td class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 5.3

/**
 *
 * @global string $wp_version
 */
function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h2>' . __('Plugins') . '</h2>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h2><?php 
    _e('Plugins');
    ?></h2>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat updates-table" id="update-plugins-table">
	<thead>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<td class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        // Get plugin compat for running version of WordPress.
        if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($plugin_data->update->compatibility->{$cur_wp_version})) {
            $compat = $plugin_data->update->compatibility->{$cur_wp_version};
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat->percent, $compat->votes, $compat->total_votes);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $core_update_version, '>=')) {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $core_update_version);
            } elseif (isset($plugin_data->update->compatibility->{$core_update_version})) {
                $update_compat = $plugin_data->update->compatibility->{$core_update_version};
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat->percent, $update_compat->votes, $update_compat->total_votes);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details = sprintf(
            '<a href="%1$s" class="thickbox open-plugin-details-modal" aria-label="%2$s">%3$s</a>',
            esc_url($details_url),
            /* translators: 1: plugin name, 2: version number */
            esc_attr(sprintf(__('View %1$s version %2$s details'), $plugin_data->Name, $plugin_data->update->new_version)),
            /* translators: %s: plugin version */
            sprintf(__('View version %s details.'), $plugin_data->update->new_version)
        );
        $checkbox_id = "checkbox_" . md5($plugin_data->Name);
        ?>
		<tr>
			<td class="check-column">
				<input type="checkbox" name="checked[]" id="<?php 
        echo $checkbox_id;
        ?>" value="<?php 
        echo esc_attr($plugin_file);
        ?>" />
				<label for="<?php 
        echo $checkbox_id;
        ?>" class="screen-reader-text"><?php 
        /* translators: %s: plugin name */
        printf(__('Select %s'), $plugin_data->Name);
        ?></label>
			</td>
			<td class="plugin-title"><p>
				<strong><?php 
        echo $plugin_data->Name;
        ?></strong>
				<?php 
        /* translators: 1: plugin version, 2: new version */
        printf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version);
        echo ' ' . $details . $compat . $upgrade_notice;
        ?>
			</p></td>
		</tr>
		<?php 
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<td class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: .20

/**
 *
 * @global string $wp_version
 */
function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h2>' . __('Plugins') . '</h2>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h2><?php 
    _e('Plugins');
    ?></h2>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat updates-table" id="update-plugins-table">
	<thead>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<td class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        // Get plugin compat for running version of WordPress.
        if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($plugin_data->update->compatibility->{$cur_wp_version})) {
            $compat = $plugin_data->update->compatibility->{$cur_wp_version};
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat->percent, $compat->votes, $compat->total_votes);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $core_update_version, '>=')) {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $core_update_version);
            } elseif (isset($plugin_data->update->compatibility->{$core_update_version})) {
                $update_compat = $plugin_data->update->compatibility->{$core_update_version};
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat->percent, $update_compat->votes, $update_compat->total_votes);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details = sprintf(
            '<a href="%1$s" class="thickbox open-plugin-details-modal" aria-label="%2$s">%3$s</a>',
            esc_url($details_url),
            /* translators: 1: plugin name, 2: version number */
            esc_attr(sprintf(__('View %1$s version %2$s details'), $plugin_data->Name, $plugin_data->update->new_version)),
            /* translators: %s: plugin version */
            sprintf(__('View version %s details.'), $plugin_data->update->new_version)
        );
        $checkbox_id = "checkbox_" . md5($plugin_data->Name);
        ?>
		<tr>
			<td class="check-column">
				<input type="checkbox" name="checked[]" id="<?php 
        echo $checkbox_id;
        ?>" value="<?php 
        echo esc_attr($plugin_file);
        ?>" />
				<label for="<?php 
        echo $checkbox_id;
        ?>" class="screen-reader-text"><?php 
        /* translators: %s: plugin name */
        printf(__('Select %s'), $plugin_data->Name);
        ?></label>
			</td>
			<td class="plugin-title"><p>
				<strong><?php 
        echo $plugin_data->Name;
        ?></strong>
				<?php 
        /* translators: 1: plugin version, 2: new version */
        printf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version);
        echo ' ' . $details . $compat . $upgrade_notice;
        ?>
			</p></td>
		</tr>
		<?php 
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<td class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 5.2

/**
 *
 * @global string $wp_version
 */
function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h2>' . __('Plugins') . '</h2>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h2><?php 
    _e('Plugins');
    ?></h2>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat updates-table" id="update-plugins-table">
	<thead>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<td class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        // Get plugin compat for running version of WordPress.
        if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($plugin_data->update->compatibility->{$cur_wp_version})) {
            $compat = $plugin_data->update->compatibility->{$cur_wp_version};
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat->percent, $compat->votes, $compat->total_votes);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $core_update_version, '>=')) {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $core_update_version);
            } elseif (isset($plugin_data->update->compatibility->{$core_update_version})) {
                $update_compat = $plugin_data->update->compatibility->{$core_update_version};
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat->percent, $update_compat->votes, $update_compat->total_votes);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details = sprintf(
            '<a href="%1$s" class="thickbox open-plugin-details-modal" aria-label="%2$s">%3$s</a>',
            esc_url($details_url),
            /* translators: 1: plugin name, 2: version number */
            esc_attr(sprintf(__('View %1$s version %2$s details'), $plugin_data->Name, $plugin_data->update->new_version)),
            /* translators: %s: plugin version */
            sprintf(__('View version %s details.'), $plugin_data->update->new_version)
        );
        $checkbox_id = "checkbox_" . md5($plugin_data->Name);
        ?>
		<tr>
			<td class="check-column">
				<input type="checkbox" name="checked[]" id="<?php 
        echo $checkbox_id;
        ?>" value="<?php 
        echo esc_attr($plugin_file);
        ?>" />
				<label for="<?php 
        echo $checkbox_id;
        ?>" class="screen-reader-text"><?php 
        /* translators: %s: plugin name */
        printf(__('Select %s'), $plugin_data->Name);
        ?></label>
			</td>
			<td class="plugin-title"><p>
				<strong><?php 
        echo $plugin_data->Name;
        ?></strong>
				<?php 
        /* translators: 1: plugin version, 2: new version */
        printf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version);
        echo ' ' . $details . $compat . $upgrade_notice;
        ?>
			</p></td>
		</tr>
		<?php 
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<td class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: .10

/**
 *
 * @global string $wp_version
 */
function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h2>' . __('Plugins') . '</h2>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h2><?php 
    _e('Plugins');
    ?></h2>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat updates-table" id="update-plugins-table">
	<thead>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<td class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        // Get plugin compat for running version of WordPress.
        if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($plugin_data->update->compatibility->{$cur_wp_version})) {
            $compat = $plugin_data->update->compatibility->{$cur_wp_version};
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat->percent, $compat->votes, $compat->total_votes);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $core_update_version, '>=')) {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $core_update_version);
            } elseif (isset($plugin_data->update->compatibility->{$core_update_version})) {
                $update_compat = $plugin_data->update->compatibility->{$core_update_version};
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat->percent, $update_compat->votes, $update_compat->total_votes);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details = sprintf(
            '<a href="%1$s" class="thickbox open-plugin-details-modal" aria-label="%2$s">%3$s</a>',
            esc_url($details_url),
            /* translators: 1: plugin name, 2: version number */
            esc_attr(sprintf(__('View %1$s version %2$s details'), $plugin_data->Name, $plugin_data->update->new_version)),
            /* translators: %s: plugin version */
            sprintf(__('View version %s details.'), $plugin_data->update->new_version)
        );
        $checkbox_id = "checkbox_" . md5($plugin_data->Name);
        ?>
		<tr>
			<td class="check-column">
				<input type="checkbox" name="checked[]" id="<?php 
        echo $checkbox_id;
        ?>" value="<?php 
        echo esc_attr($plugin_file);
        ?>" />
				<label for="<?php 
        echo $checkbox_id;
        ?>" class="screen-reader-text"><?php 
        /* translators: %s: plugin name */
        printf(__('Select %s'), $plugin_data->Name);
        ?></label>
			</td>
			<td class="plugin-title"><p>
				<strong><?php 
        echo $plugin_data->Name;
        ?></strong>
				<?php 
        /* translators: 1: plugin version, 2: new version */
        printf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version);
        echo ' ' . $details . $compat . $upgrade_notice;
        ?>
			</p></td>
		</tr>
		<?php 
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<td class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 4.5

/**
 *
 * @global string $wp_version
 */
function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h2>' . __('Plugins') . '</h2>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h2><?php 
    _e('Plugins');
    ?></h2>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat updates-table" id="update-plugins-table">
	<thead>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<td class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        // Get plugin compat for running version of WordPress.
        if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($plugin_data->update->compatibility->{$cur_wp_version})) {
            $compat = $plugin_data->update->compatibility->{$cur_wp_version};
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat->percent, $compat->votes, $compat->total_votes);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $core_update_version, '>=')) {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $core_update_version);
            } elseif (isset($plugin_data->update->compatibility->{$core_update_version})) {
                $update_compat = $plugin_data->update->compatibility->{$core_update_version};
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat->percent, $update_compat->votes, $update_compat->total_votes);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details = sprintf(
            '<a href="%1$s" class="thickbox open-plugin-details-modal" aria-label="%2$s">%3$s</a>',
            esc_url($details_url),
            /* translators: 1: plugin name, 2: version number */
            esc_attr(sprintf(__('View %1$s version %2$s details'), $plugin_data->Name, $plugin_data->update->new_version)),
            /* translators: %s: plugin version */
            sprintf(__('View version %s details.'), $plugin_data->update->new_version)
        );
        $checkbox_id = "checkbox_" . md5($plugin_data->Name);
        ?>
		<tr>
			<td class="check-column">
				<input type="checkbox" name="checked[]" id="<?php 
        echo $checkbox_id;
        ?>" value="<?php 
        echo esc_attr($plugin_file);
        ?>" />
				<label for="<?php 
        echo $checkbox_id;
        ?>" class="screen-reader-text"><?php 
        /* translators: %s: plugin name */
        printf(__('Select %s'), $plugin_data->Name);
        ?></label>
			</td>
			<td class="plugin-title"><p>
				<strong><?php 
        echo $plugin_data->Name;
        ?></strong>
				<?php 
        /* translators: 1: plugin version, 2: new version */
        printf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version);
        echo ' ' . $details . $compat . $upgrade_notice;
        ?>
			</p></td>
		</tr>
		<?php 
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<td class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></td>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 4.6

/**
 *
 * @global string $wp_version
 */
function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h2>' . __('Plugins') . '</h2>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h2><?php 
    _e('Plugins');
    ?></h2>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<td scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug, 'fields' => array('short_description' => false, 'sections' => false, 'requires' => false, 'rating' => false, 'ratings' => false, 'downloaded' => false, 'downloadlink' => false, 'last_updated' => false, 'added' => false, 'tags' => false, 'homepage' => false, 'donate_link' => false)));
        if (is_wp_error($info)) {
            $info = false;
        }
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->tested) && version_compare($info->tested, $core_update_version, '>=')) {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $core_update_version);
            } elseif (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details.'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 4.4

/**
 *
 * @global string $wp_version
 */
function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h2>' . __('Plugins') . '</h2>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h2><?php 
    _e('Plugins');
    ?></h2>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<td scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug, 'fields' => array('short_description' => false, 'sections' => false, 'requires' => false, 'rating' => false, 'ratings' => false, 'downloaded' => false, 'downloadlink' => false, 'last_updated' => false, 'added' => false, 'tags' => false, 'homepage' => false, 'donate_link' => false)));
        if (is_wp_error($info)) {
            $info = false;
        }
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->tested) && version_compare($info->tested, $core_update_version, '>=')) {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $core_update_version);
            } elseif (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details.'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: .30

/**
 *
 * @global string $wp_version
 */
function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h2>' . __('Plugins') . '</h2>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h2><?php 
    _e('Plugins');
    ?></h2>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<td scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug, 'fields' => array('short_description' => false, 'sections' => false, 'requires' => false, 'rating' => false, 'ratings' => false, 'downloaded' => false, 'downloadlink' => false, 'last_updated' => false, 'added' => false, 'tags' => false, 'homepage' => false, 'donate_link' => false)));
        if (is_wp_error($info)) {
            $info = false;
        }
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->tested) && version_compare($info->tested, $core_update_version, '>=')) {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $core_update_version);
            } elseif (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details.'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 4.3

/**
 *
 * @global string $wp_version
 */
function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h2>' . __('Plugins') . '</h2>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h2><?php 
    _e('Plugins');
    ?></h2>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<td scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug, 'fields' => array('short_description' => false, 'sections' => false, 'requires' => false, 'rating' => false, 'ratings' => false, 'downloaded' => false, 'downloadlink' => false, 'last_updated' => false, 'added' => false, 'tags' => false, 'homepage' => false, 'donate_link' => false)));
        if (is_wp_error($info)) {
            $info = false;
        }
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->tested) && version_compare($info->tested, $core_update_version, '>=')) {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $core_update_version);
            } elseif (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details.'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: .20

/**
 *
 * @global string $wp_version
 */
function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h2>' . __('Plugins') . '</h2>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h2><?php 
    _e('Plugins');
    ?></h2>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<td scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug, 'fields' => array('short_description' => false, 'sections' => false, 'requires' => false, 'rating' => false, 'ratings' => false, 'downloaded' => false, 'downloadlink' => false, 'last_updated' => false, 'added' => false, 'tags' => false, 'homepage' => false, 'donate_link' => false)));
        if (is_wp_error($info)) {
            $info = false;
        }
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->tested) && version_compare($info->tested, $core_update_version, '>=')) {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $core_update_version);
            } elseif (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details.'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 4.2

/**
 *
 * @global string $wp_version
 */
function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h2>' . __('Plugins') . '</h2>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h2><?php 
    _e('Plugins');
    ?></h2>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<td scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug, 'fields' => array('short_description' => false, 'sections' => false, 'requires' => false, 'rating' => false, 'ratings' => false, 'downloaded' => false, 'downloadlink' => false, 'last_updated' => false, 'added' => false, 'tags' => false, 'homepage' => false, 'donate_link' => false)));
        if (is_wp_error($info)) {
            $info = false;
        }
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->tested) && version_compare($info->tested, $core_update_version, '>=')) {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $core_update_version);
            } elseif (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details.'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: .10

/**
 *
 * @global string $wp_version
 */
function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h2>' . __('Plugins') . '</h2>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h2><?php 
    _e('Plugins');
    ?></h2>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<td scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug, 'fields' => array('short_description' => false, 'sections' => false, 'requires' => false, 'rating' => false, 'ratings' => false, 'downloaded' => false, 'downloadlink' => false, 'last_updated' => false, 'added' => false, 'tags' => false, 'homepage' => false, 'donate_link' => false)));
        if (is_wp_error($info)) {
            $info = false;
        }
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->tested) && version_compare($info->tested, $core_update_version, '>=')) {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $core_update_version);
            } elseif (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details.'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 4.4

/**
 *
 * @global string $wp_version
 */
function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h2>' . __('Plugins') . '</h2>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h2><?php 
    _e('Plugins');
    ?></h2>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<td scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug, 'fields' => array('short_description' => false, 'sections' => false, 'requires' => false, 'rating' => false, 'ratings' => false, 'downloaded' => false, 'downloadlink' => false, 'last_updated' => false, 'added' => false, 'tags' => false, 'homepage' => false, 'donate_link' => false)));
        if (is_wp_error($info)) {
            $info = false;
        }
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->tested) && version_compare($info->tested, $core_update_version, '>=')) {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $core_update_version);
            } elseif (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details.'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 3.7

/**
 *
 * @global string $wp_version
 */
function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<td scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        if (is_wp_error($info)) {
            $info = false;
        }
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 3.4

/**
 *
 * @global string $wp_version
 */
function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<td scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        if (is_wp_error($info)) {
            $info = false;
        }
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: .30

/**
 *
 * @global string $wp_version
 */
function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<td scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        if (is_wp_error($info)) {
            $info = false;
        }
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 3.3

/**
 *
 * @global string $wp_version
 */
function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<td scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        if (is_wp_error($info)) {
            $info = false;
        }
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: .20

/**
 *
 * @global string $wp_version
 */
function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<td scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        if (is_wp_error($info)) {
            $info = false;
        }
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 3.2

/**
 *
 * @global string $wp_version
 */
function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<td scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        if (is_wp_error($info)) {
            $info = false;
        }
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: .10

/**
 *
 * @global string $wp_version
 */
function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<td scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        if (is_wp_error($info)) {
            $info = false;
        }
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 4.3

/**
 *
 * @global string $wp_version
 */
function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<td scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        if (is_wp_error($info)) {
            $info = false;
        }
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<td scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></td>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 2.4

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        if (is_wp_error($info)) {
            $info = false;
        }
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: .30

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        if (is_wp_error($info)) {
            $info = false;
        }
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 2.3

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        if (is_wp_error($info)) {
            $info = false;
        }
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: .20

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        if (is_wp_error($info)) {
            $info = false;
        }
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 2.2

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        if (is_wp_error($info)) {
            $info = false;
        }
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: .11

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        if (is_wp_error($info)) {
            $info = false;
        }
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 4.2

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        if (is_wp_error($info)) {
            $info = false;
        }
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 1.5

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        if (is_wp_error($info)) {
            $info = false;
        }
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: .40

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        if (is_wp_error($info)) {
            $info = false;
        }
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 1.4

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        if (is_wp_error($info)) {
            $info = false;
        }
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: .30

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        if (is_wp_error($info)) {
            $info = false;
        }
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 1.3

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        if (is_wp_error($info)) {
            $info = false;
        }
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: .20

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        if (is_wp_error($info)) {
            $info = false;
        }
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 1.2

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        if (is_wp_error($info)) {
            $info = false;
        }
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: .14

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        if (is_wp_error($info)) {
            $info = false;
        }
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 1.1

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        if (is_wp_error($info)) {
            $info = false;
        }
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 4.1

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        if (is_wp_error($info)) {
            continue;
        }
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 0.4

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: .30

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 0.3

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: .20

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 0.2

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: .14

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 9.2

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: .15

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 3.9

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 8.4

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" cellspacing="0" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: .30

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" cellspacing="0" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 8.3

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" cellspacing="0" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: .20

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" cellspacing="0" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 8.2

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" cellspacing="0" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: .17

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" cellspacing="0" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 3.8

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" cellspacing="0" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 7.5

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" cellspacing="0" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr class='active'>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: .40

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" cellspacing="0" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr class='active'>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 7.4

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" cellspacing="0" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr class='active'>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: .30

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" cellspacing="0" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr class='active'>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 7.3

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" cellspacing="0" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr class='active'>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: .20

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" cellspacing="0" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr class='active'>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 7.2

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" cellspacing="0" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr class='active'>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: .17

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" cellspacing="0" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $plugin_data = (object) _get_plugin_data_markup_translate($plugin_file, (array) $plugin_data, false, true);
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr class='active'>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}

WordPress Version: 3.7

function list_plugin_updates()
{
    global $wp_version;
    $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
    require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
    $plugins = get_plugin_updates();
    if (empty($plugins)) {
        echo '<h3>' . __('Plugins') . '</h3>';
        echo '<p>' . __('Your plugins are all up to date.') . '</p>';
        return;
    }
    $form_action = 'update-core.php?action=do-plugin-upgrade';
    $core_updates = get_core_updates();
    if (!isset($core_updates[0]->response) || 'latest' == $core_updates[0]->response || 'development' == $core_updates[0]->response || version_compare($core_updates[0]->current, $cur_wp_version, '=')) {
        $core_update_version = false;
    } else {
        $core_update_version = $core_updates[0]->current;
    }
    ?>
<h3><?php 
    _e('Plugins');
    ?></h3>
<p><?php 
    _e('The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.');
    ?></p>
<form method="post" action="<?php 
    echo esc_url($form_action);
    ?>" name="upgrade-plugins" class="upgrade">
<?php 
    wp_nonce_field('upgrade-core');
    ?>
<p><input id="upgrade-plugins" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
<table class="widefat" cellspacing="0" id="update-plugins-table">
	<thead>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</thead>

	<tfoot>
	<tr>
		<th scope="col" class="manage-column check-column"><input type="checkbox" id="plugins-select-all-2" /></th>
		<th scope="col" class="manage-column"><label for="plugins-select-all-2"><?php 
    _e('Select All');
    ?></label></th>
	</tr>
	</tfoot>
	<tbody class="plugins">
<?php 
    foreach ((array) $plugins as $plugin_file => $plugin_data) {
        $info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug));
        // Get plugin compat for running version of WordPress.
        if (isset($info->tested) && version_compare($info->tested, $cur_wp_version, '>=')) {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
        } elseif (isset($info->compatibility[$cur_wp_version][$plugin_data->update->new_version])) {
            $compat = $info->compatibility[$cur_wp_version][$plugin_data->update->new_version];
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $cur_wp_version, $compat[0], $compat[2], $compat[1]);
        } else {
            $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $cur_wp_version);
        }
        // Get plugin compat for updated version of WordPress.
        if ($core_update_version) {
            if (isset($info->compatibility[$core_update_version][$plugin_data->update->new_version])) {
                $update_compat = $info->compatibility[$core_update_version][$plugin_data->update->new_version];
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'), $core_update_version, $update_compat[0], $update_compat[2], $update_compat[1]);
            } else {
                $compat .= '<br />' . sprintf(__('Compatibility with WordPress %1$s: Unknown'), $core_update_version);
            }
        }
        // Get the upgrade notice for the new plugin version.
        if (isset($plugin_data->update->upgrade_notice)) {
            $upgrade_notice = '<br />' . strip_tags($plugin_data->update->upgrade_notice);
        } else {
            $upgrade_notice = '';
        }
        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
        echo "\n\t<tr class='active'>\n\t\t<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th>\n\t\t<td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td>\n\t</tr>";
    }
    ?>
	</tbody>
</table>
<p><input id="upgrade-plugins-2" class="button" type="submit" value="<?php 
    esc_attr_e('Update Plugins');
    ?>" name="upgrade" /></p>
</form>
<?php 
}