Make WordPress Core


Ignore:
Timestamp:
09/22/2011 09:15:45 AM (14 years ago)
Author:
westi
Message:

Revert [18747] until we can discuss it further. See #18453.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/misc.php

    r18747 r18752  
    585585<?php
    586586}
    587 
    588 /**
    589  * Show error message only to single site admins or network admins
    590  *
    591  */ 
    592 function _show_errors_to_admins() {
    593     global $_admin_error_messages;
    594 
    595     if ( !is_super_admin() )
    596         return;
    597 
    598     if ( !empty($_admin_error_messages) ) {
    599         echo '<div class="error">';
    600 
    601         foreach ( (array) $_admin_error_messages as $message ) {
    602             echo "<p>$message</p>\n";
    603         }
    604 
    605         echo "</div>\n";
    606     }
    607 }
    608 add_action( 'admin_notices', '_show_errors_to_admins' );
    609 add_action( 'network_admin_notices', '_show_errors_to_admins' );
    610 
     587?>
Note: See TracChangeset for help on using the changeset viewer.