$req_headers) {
$default_types = isset($req_headers->update['requires']) ? $req_headers->update['requires'] : null;
$updated_widget_instance = isset($req_headers->update['requires_php']) ? $req_headers->update['requires_php'] : null;
$floatvalue = is_wp_version_compatible($default_types);
$is_separator = is_php_version_compatible($updated_widget_instance);
$tag_key = '';
if (!$floatvalue && !$is_separator) {
$tag_key .= '
' . __('This update does not work with your versions of WordPress and PHP.') . ' ';
if (current_user_can('update_core') && current_user_can('update_php')) {
$tag_key .= 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(wp_get_update_php_url())
);
$deprecated_files = wp_get_update_php_annotation();
if ($deprecated_files) {
$tag_key .= '' . $deprecated_files . '';
}
} elseif (current_user_can('update_core')) {
$tag_key .= 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')) {
$tag_key .= sprintf(
/* translators: %s: URL to Update PHP page. */
__('Learn more about updating PHP.'),
esc_url(wp_get_update_php_url())
);
$deprecated_files = wp_get_update_php_annotation();
if ($deprecated_files) {
$tag_key .= '
' . $deprecated_files . '';
}
}
} elseif (!$floatvalue) {
$tag_key .= '
' . __('This update does not work with your version of WordPress.') . ' ';
if (current_user_can('update_core')) {
$tag_key .= sprintf(
/* translators: %s: URL to WordPress Updates screen. */
__('Please update WordPress.'),
esc_url(self_admin_url('update-core.php'))
);
}
} elseif (!$is_separator) {
$tag_key .= '
' . __('This update does not work with your version of PHP.') . ' ';
if (current_user_can('update_php')) {
$tag_key .= sprintf(
/* translators: %s: URL to Update PHP page. */
__('Learn more about updating PHP.'),
esc_url(wp_get_update_php_url())
);
$deprecated_files = wp_get_update_php_annotation();
if ($deprecated_files) {
$tag_key .= '
' . $deprecated_files . '';
}
}
}
$candidate = 'checkbox_' . md5($req_headers->get('Name'));
?>
|
display('Name');
?>
display('Version'),
$req_headers->update['new_version']
);
echo ' ' . $tag_key;
if (in_array($is_search, $root_value, true)) {
echo $originatorcode;
}
?>
|