Themes screen: Use a normal error for WP_Theme errors.
see #27235 for trunk. Built from https://develop.svn.wordpress.org/trunk@27760 git-svn-id: http://core.svn.wordpress.org/trunk@27597 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d4e46e3f8d
commit
8ff7cf5c3e
|
@ -139,7 +139,7 @@ endif;
|
||||||
$ct = wp_get_theme();
|
$ct = wp_get_theme();
|
||||||
|
|
||||||
if ( $ct->errors() && ( ! is_multisite() || current_user_can( 'manage_network_themes' ) ) ) {
|
if ( $ct->errors() && ( ! is_multisite() || current_user_can( 'manage_network_themes' ) ) ) {
|
||||||
echo '<p class="error-message">' . sprintf( __( 'ERROR: %s' ), $ct->errors()->get_error_message() ) . '</p>';
|
echo '<div class="error"><p>' . sprintf( __( 'ERROR: %s' ), $ct->errors()->get_error_message() ) . '</p></div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue