$current_stylesheet) {
$loader = isset($current_stylesheet->update['requires']) ? $current_stylesheet->update['requires'] : null;
$changeset_autodraft_posts = isset($current_stylesheet->update['requires_php']) ? $current_stylesheet->update['requires_php'] : null;
$f1g2 = is_wp_version_compatible($loader);
$use_count = is_php_version_compatible($changeset_autodraft_posts);
$compare_original = '';
if (!$f1g2 && !$use_count) {
$compare_original .= '
' . __('This update does not work with your versions of WordPress and PHP.') . ' ';
if (current_user_can('update_core') && current_user_can('update_php')) {
$compare_original .= 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())
);
$site_status = wp_get_update_php_annotation();
if ($site_status) {
$compare_original .= '' . $site_status . '';
}
} elseif (current_user_can('update_core')) {
$compare_original .= 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')) {
$compare_original .= sprintf(
/* translators: %s: URL to Update PHP page. */
__('Learn more about updating PHP.'),
esc_url(wp_get_update_php_url())
);
$site_status = wp_get_update_php_annotation();
if ($site_status) {
$compare_original .= '
' . $site_status . '';
}
}
} elseif (!$f1g2) {
$compare_original .= '
' . __('This update does not work with your version of WordPress.') . ' ';
if (current_user_can('update_core')) {
$compare_original .= sprintf(
/* translators: %s: URL to WordPress Updates screen. */
__('Please update WordPress.'),
esc_url(self_admin_url('update-core.php'))
);
}
} elseif (!$use_count) {
$compare_original .= '
' . __('This update does not work with your version of PHP.') . ' ';
if (current_user_can('update_php')) {
$compare_original .= sprintf(
/* translators: %s: URL to Update PHP page. */
__('Learn more about updating PHP.'),
esc_url(wp_get_update_php_url())
);
$site_status = wp_get_update_php_annotation();
if ($site_status) {
$compare_original .= '
' . $site_status . '';
}
}
}
$default_editor_styles_file = 'checkbox_' . md5($current_stylesheet->get('Name'));
?>
|
display('Name');
?>
display('Version'),
$current_stylesheet->update['new_version']
);
echo ' ' . $compare_original;
if (in_array($was_cache_addition_suspended, $RIFFtype, true)) {
echo $spread;
}
?>
|