wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
paused_themes_notice › WordPress Function
Seit5.2.0
Veraltetn/v
› paused_themes_notice ( Keine Parameter )
| Definiert in: |
|
| Codex: |
Renders an admin notice in case some themes have been paused due to errors.
Ähnliche Funktionen: paused_plugins_notice, wp_paused_themes, wp_authenticate, wp_skip_paused_themes, set_theme_mod
Quellcode
function paused_themes_notice() {
if ( 'themes.php' === $GLOBALS['pagenow'] ) {
return;
}
if ( ! current_user_can( 'resume_themes' ) ) {
return;
}
if ( ! isset( $GLOBALS['_paused_themes'] ) || empty( $GLOBALS['_paused_themes'] ) ) {
return;
}
$message = sprintf(
'<p><strong>%s</strong><br>%s</p><p><a href="%s">%s</a></p>',
__( 'One or more themes failed to load properly.' ),
__( 'You can find more details and make changes on the Themes screen.' ),
esc_url( admin_url( 'themes.php' ) ),
__( 'Go to the Themes screen' )
);
wp_admin_notice(
$message,
array(
'type' => 'error',
'paragraph_wrap' => false,
)
);
}