', $comments_struct, esc_attr($done->get_stylesheet() . '-update'), esc_attr($done->get_stylesheet()), $options_audiovideo_flv_max_frames->get_column_count());
if ($ep && $font_sizes_by_origin) {
if (!current_user_can('update_themes')) {
printf(
/* translators: 1: Theme 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.'),
$done['Name'],
esc_url($show_pending_links),
sprintf(
'class="thickbox open-plugin-details-modal" aria-label="%s"',
/* translators: 1: Theme name, 2: Version number. */
esc_attr(sprintf(__('View %1$s version %2$s details'), $done['Name'], $meta_boxes['new_version']))
),
$meta_boxes['new_version']
);
} elseif (empty($meta_boxes['package'])) {
printf(
/* translators: 1: Theme 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 theme.'),
$done['Name'],
esc_url($show_pending_links),
sprintf(
'class="thickbox open-plugin-details-modal" aria-label="%s"',
/* translators: 1: Theme name, 2: Version number. */
esc_attr(sprintf(__('View %1$s version %2$s details'), $done['Name'], $meta_boxes['new_version']))
),
$meta_boxes['new_version']
);
} else {
printf(
/* translators: 1: Theme 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.'),
$done['Name'],
esc_url($show_pending_links),
sprintf(
'class="thickbox open-plugin-details-modal" aria-label="%s"',
/* translators: 1: Theme name, 2: Version number. */
esc_attr(sprintf(__('View %1$s version %2$s details'), $done['Name'], $meta_boxes['new_version']))
),
$meta_boxes['new_version'],
wp_nonce_url(self_admin_url('update.php?action=upgrade-theme&theme=') . $gravatar, 'upgrade-theme_' . $gravatar),
sprintf(
'class="update-link" aria-label="%s"',
/* translators: %s: Theme name. */
esc_attr(sprintf(_x('Update %s now', 'theme'), $done['Name']))
)
);
}
} else if (!$ep && !$font_sizes_by_origin) {
printf(
/* translators: %s: Theme name. */
__('There is a new version of %s available, but it does not work with your versions of WordPress and PHP.'),
$done['Name']
);
if (current_user_can('update_core') && current_user_can('update_php')) {
printf(
/* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */
' ' . __('Please update WordPress, and then learn more about updating PHP.'),
self_admin_url('update-core.php'),
esc_url(wp_get_update_php_url())
);
wp_update_php_annotation('
', '');
} elseif (current_user_can('update_core')) {
printf(
/* translators: %s: URL to WordPress Updates screen. */
' ' . __('Please update WordPress.'),
self_admin_url('update-core.php')
);
} elseif (current_user_can('update_php')) {
printf(
/* translators: %s: URL to Update PHP page. */
' ' . __('Learn more about updating PHP.'),
esc_url(wp_get_update_php_url())
);
wp_update_php_annotation('
', '');
}
} elseif (!$ep) {
printf(
/* translators: %s: Theme name. */
__('There is a new version of %s available, but it does not work with your version of WordPress.'),
$done['Name']
);
if (current_user_can('update_core')) {
printf(
/* translators: %s: URL to WordPress Updates screen. */
' ' . __('Please update WordPress.'),
self_admin_url('update-core.php')
);
}
} elseif (!$font_sizes_by_origin) {
printf(
/* translators: %s: Theme name. */
__('There is a new version of %s available, but it does not work with your version of PHP.'),
$done['Name']
);
if (current_user_can('update_php')) {
printf(
/* translators: %s: URL to Update PHP page. */
' ' . __('Learn more about updating PHP.'),
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 themes list table.
*
* The dynamic portion of the hook name, `$gravatar`, refers to
* the theme slug as found in the WordPress.org themes repository.
*
* @since 3.1.0
*
* @param WP_Theme $done The WP_Theme object.
* @param array $meta_boxes {
* An array of metadata about the available theme update.
*
* @type string $critical New theme version.
* @type string $select Theme URL.
* @type string $package Theme update package URL.
* }
*/
do_action("in_theme_update_message-{$gravatar}", $done, $meta_boxes);
// phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
echo '