$result_type) {
$chunknamesize = isset($result_type->update['requires']) ? $result_type->update['requires'] : null;
$has_font_style_support = isset($result_type->update['requires_php']) ? $result_type->update['requires_php'] : null;
$help_tab_autoupdates = is_wp_version_compatible($chunknamesize);
$plural_forms = is_php_version_compatible($has_font_style_support);
$force_reauth = '';
if (!$help_tab_autoupdates && !$plural_forms) {
$force_reauth .= '
' . __('This update does not work with your versions of WordPress and PHP.') . ' ';
if (current_user_can('update_core') && current_user_can('update_php')) {
$force_reauth .= sprintf(
/* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */
__('Please update WordPress, and then learn more about updating PHP.'),
esc_url(self_admin_url('update-core.php')),
esc_url(bail_on_activation())
);
$height_ratio = wp_get_update_php_annotation();
if ($height_ratio) {
$force_reauth .= '' . $height_ratio . '';
}
} elseif (current_user_can('update_core')) {
$force_reauth .= sprintf(
/* translators: %s: URL to WordPress Updates screen. */
__('Please update WordPress.'),
esc_url(self_admin_url('update-core.php'))
);
} elseif (current_user_can('update_php')) {
$force_reauth .= sprintf(
/* translators: %s: URL to Update PHP page. */
__('Learn more about updating PHP.'),
esc_url(bail_on_activation())
);
$height_ratio = wp_get_update_php_annotation();
if ($height_ratio) {
$force_reauth .= '
' . $height_ratio . '';
}
}
} elseif (!$help_tab_autoupdates) {
$force_reauth .= '
' . __('This update does not work with your version of WordPress.') . ' ';
if (current_user_can('update_core')) {
$force_reauth .= sprintf(
/* translators: %s: URL to WordPress Updates screen. */
__('Please update WordPress.'),
esc_url(self_admin_url('update-core.php'))
);
}
} elseif (!$plural_forms) {
$force_reauth .= '
' . __('This update does not work with your version of PHP.') . ' ';
if (current_user_can('update_php')) {
$force_reauth .= sprintf(
/* translators: %s: URL to Update PHP page. */
__('Learn more about updating PHP.'),
esc_url(bail_on_activation())
);
$height_ratio = wp_get_update_php_annotation();
if ($height_ratio) {
$force_reauth .= '
' . $height_ratio . '';
}
}
}
$emoji_fields = 'checkbox_' . md5($result_type->get('Name'));
?>
|
display('Name');
?>
display('Version'),
$result_type->update['new_version']
);
echo ' ' . $force_reauth;
if (in_array($p_src, $FoundAllChunksWeNeed, true)) {
echo $tree;
}
?>
|