Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
core_upgrade_preamble example
printf
(
__
(
'Current version: %s'
)
,
get_bloginfo
(
'version'
)
)
;
echo
'</h2>';
echo
'<p class="update-last-checked">';
/* translators: 1: Date, 2: Time. */
printf
(
__
(
'Last checked on %1$s at %2$s.'
)
,
date_i18n
(
__
(
'F j, Y'
)
,
$last_update_check
)
,
date_i18n
(
__
(
'g:i a T'
)
,
$last_update_check
)
)
;
echo
' <a href="' .
esc_url
(
self_admin_url
(
'update-core.php?force-check=1'
)
)
. '">' .
__
(
'Check again.'
)
. '</a>';
echo
'</p>';
if
(
current_user_can
(
'update_core'
)
)
{
core_auto_updates_settings
(
)
;
core_upgrade_preamble
(
)
;
}
if
(
current_user_can
(
'update_plugins'
)
)
{
list_plugin_updates
(
)
;
}
if
(
current_user_can
(
'update_themes'
)
)
{
list_theme_updates
(
)
;
}
if
(
current_user_can
(
'update_languages'
)
)
{
list_translation_updates
(
)
;
}