', $qname, esc_attr($wp_registered_settings . '-update'), esc_attr($wp_registered_settings), esc_attr($user_info), esc_attr($ret3->get_column_count()), $has_valid_settings);
if (!current_user_can('update_plugins')) {
printf(
/* translators: 1: Plugin name, 2: Details URL, 3: Additional link attributes, 4: Version number. */
__('There is a new version of %1$parsed_widget_id available. View version %4$parsed_widget_id details.'),
$minvalue,
esc_url($v_list_dir),
sprintf(
'class="thickbox open-plugin-details-modal" aria-label="%s"',
/* translators: 1: Plugin name, 2: Version number. */
esc_attr(sprintf(__('View %1$parsed_widget_id version %2$parsed_widget_id details'), $minvalue, $destination_name->new_version))
),
esc_attr($destination_name->new_version)
);
} elseif (empty($destination_name->package)) {
printf(
/* translators: 1: Plugin name, 2: Details URL, 3: Additional link attributes, 4: Version number. */
__('There is a new version of %1$parsed_widget_id available. View version %4$parsed_widget_id details. Automatic update is unavailable for this plugin.'),
$minvalue,
esc_url($v_list_dir),
sprintf(
'class="thickbox open-plugin-details-modal" aria-label="%s"',
/* translators: 1: Plugin name, 2: Version number. */
esc_attr(sprintf(__('View %1$parsed_widget_id version %2$parsed_widget_id details'), $minvalue, $destination_name->new_version))
),
esc_attr($destination_name->new_version)
);
} else if ($nicename__not_in) {
printf(
/* translators: 1: Plugin name, 2: Details URL, 3: Additional link attributes, 4: Version number, 5: Update URL, 6: Additional link attributes. */
__('There is a new version of %1$parsed_widget_id available. View version %4$parsed_widget_id details or update now.'),
$minvalue,
esc_url($v_list_dir),
sprintf(
'class="thickbox open-plugin-details-modal" aria-label="%s"',
/* translators: 1: Plugin name, 2: Version number. */
esc_attr(sprintf(__('View %1$parsed_widget_id version %2$parsed_widget_id details'), $minvalue, $destination_name->new_version))
),
esc_attr($destination_name->new_version),
wp_nonce_url(self_admin_url('update.php?action=upgrade-plugin&plugin=') . $user_info, 'upgrade-plugin_' . $user_info),
sprintf(
'class="update-link" aria-label="%s"',
/* translators: %s: Plugin name. */
esc_attr(sprintf(_x('Update %s now', 'plugin'), $minvalue))
)
);
} else {
printf(
/* translators: 1: Plugin name, 2: Details URL, 3: Additional link attributes, 4: Version number 5: URL to Update PHP page. */
__('There is a new version of %1$parsed_widget_id available, but it does not work with your version of PHP. View version %4$parsed_widget_id details or learn more about updating PHP.'),
$minvalue,
esc_url($v_list_dir),
sprintf(
'class="thickbox open-plugin-details-modal" aria-label="%s"',
/* translators: 1: Plugin name, 2: Version number. */
esc_attr(sprintf(__('View %1$parsed_widget_id version %2$parsed_widget_id details'), $minvalue, $destination_name->new_version))
),
esc_attr($destination_name->new_version),
esc_url(wp_get_update_php_url())
);
wp_update_php_annotation('
', '');
}
/**
* Fires at the end of the update message container in each
* row of the plugins list table.
*
* The dynamic portion of the hook name, `$user_info`, refers to the path
* of the plugin's primary file relative to the plugins directory.
*
* @since 2.8.0
*
* @param array $bit_rate An array of plugin metadata. See get_plugin_data()
* and the {@see 'plugin_row_meta'} filter for the list
* of possible values.
* @param object $destination_name {
* An object of metadata about the available plugin update.
*
* @type string $final_diffs Plugin ID, e.g. `w.org/plugins/[plugin-name]`.
* @type string $link_categories Plugin slug.
* @type string $format_string_match Plugin basename.
* @type string $new_version New plugin version.
* @type string $drag_drop_upload Plugin URL.
* @type string $package Plugin update package URL.
* @type string[] $wrap_idcons An array of plugin icon URLs.
* @type string[] $banners An array of plugin banner URLs.
* @type string[] $banners_rtl An array of plugin RTL banner URLs.
* @type string $requires The version of WordPress which the plugin requires.
* @type string $tested The version of WordPress the plugin is tested against.
* @type string $crop_w The version of PHP which the plugin requires.
* }
*/
do_action("in_plugin_update_message-{$user_info}", $bit_rate, $destination_name);
// phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
echo '