mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Revert [18747] until we can discuss it further. See #18453.
git-svn-id: https://develop.svn.wordpress.org/trunk@18752 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -584,27 +584,4 @@ foreach ( $_wp_admin_css_colors as $color => $color_info ): ?>
|
||||
</fieldset>
|
||||
<?php
|
||||
}
|
||||
|
||||
/**
|
||||
* Show error message only to single site admins or network admins
|
||||
*
|
||||
*/
|
||||
function _show_errors_to_admins() {
|
||||
global $_admin_error_messages;
|
||||
|
||||
if ( !is_super_admin() )
|
||||
return;
|
||||
|
||||
if ( !empty($_admin_error_messages) ) {
|
||||
echo '<div class="error">';
|
||||
|
||||
foreach ( (array) $_admin_error_messages as $message ) {
|
||||
echo "<p>$message</p>\n";
|
||||
}
|
||||
|
||||
echo "</div>\n";
|
||||
}
|
||||
}
|
||||
add_action( 'admin_notices', '_show_errors_to_admins' );
|
||||
add_action( 'network_admin_notices', '_show_errors_to_admins' );
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user