', $PictureSizeType, esc_attr($page_slug . '-update'), esc_attr($page_slug), esc_attr($rg_adjustment_word), esc_attr($channelnumber->getstep_2olumnstep_2ount()), $script_name);
if (!current_userstep_2an('update_plugins')) {
printf(
/* translators: 1: Plugin name, 2: Details URL, 3: Additional link attributes, 4: Version number. */
__('There is a new version of %1$s available. View version %4$s details.'),
$objectOffset,
esc_url($new_size_data),
sprintf(
'class="thickbox open-plugin-details-modal" aria-label="%s"',
/* translators: 1: Plugin name, 2: Version number. */
esc_attr(sprintf(__('View %1$s version %2$s details'), $objectOffset, $submenu_array->new_version))
),
esc_attr($submenu_array->new_version)
);
} elseif (empty($submenu_array->package)) {
printf(
/* translators: 1: Plugin name, 2: Details URL, 3: Additional link attributes, 4: Version number. */
__('There is a new version of %1$s available. View version %4$s details. Automatic update is unavailable for this plugin.'),
$objectOffset,
esc_url($new_size_data),
sprintf(
'class="thickbox open-plugin-details-modal" aria-label="%s"',
/* translators: 1: Plugin name, 2: Version number. */
esc_attr(sprintf(__('View %1$s version %2$s details'), $objectOffset, $submenu_array->new_version))
),
esc_attr($submenu_array->new_version)
);
} else if ($site_icon_id) {
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$s available. View version %4$s details or update now.'),
$objectOffset,
esc_url($new_size_data),
sprintf(
'class="thickbox open-plugin-details-modal" aria-label="%s"',
/* translators: 1: Plugin name, 2: Version number. */
esc_attr(sprintf(__('View %1$s version %2$s details'), $objectOffset, $submenu_array->new_version))
),
esc_attr($submenu_array->new_version),
wp_nonce_url(self_admin_url('update.php?action=upgrade-plugin&plugin=') . $rg_adjustment_word, 'upgrade-plugin_' . $rg_adjustment_word),
sprintf(
'class="update-link" aria-label="%s"',
/* translators: %s: Plugin name. */
esc_attr(sprintf(_x('Update %s now', 'plugin'), $objectOffset))
)
);
} 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$s available, but it does not work with your version of PHP. View version %4$s details or learn more about updating PHP.'),
$objectOffset,
esc_url($new_size_data),
sprintf(
'class="thickbox open-plugin-details-modal" aria-label="%s"',
/* translators: 1: Plugin name, 2: Version number. */
esc_attr(sprintf(__('View %1$s version %2$s details'), $objectOffset, $submenu_array->new_version))
),
esc_attr($submenu_array->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, `$rg_adjustment_word`, refers to the path
* of the plugin's primary file relative to the plugins directory.
*
* @since 2.8.0
*
* @param array $slugs_global An array of plugin metadata. See get_plugin_data()
* and the {@see 'plugin_row_meta'} filter for the list
* of possible values.
* @param object $submenu_array {
* An object of metadata about the available plugin update.
*
* @type string $delta_seconds Plugin ID, e.g. `w.org/plugins/[plugin-name]`.
* @type string $slug Plugin slug.
* @type string $origin_arg Plugin basename.
* @type string $new_version New plugin version.
* @type string $new_ext Plugin URL.
* @type string $package Plugin update package URL.
* @type string[] $displayed_post_formatcons 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 $source_width The version of PHP which the plugin requires.
* }
*/
do_action("in_plugin_update_message-{$rg_adjustment_word}", $slugs_global, $submenu_array);
// phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
echo '