WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/30/2010 03:37:46 PM (12 years ago)
Author:
nacin
Message:

Use a class for update-nag, as especially in MS we're sometimes hooking in more than one per page.

File:
1 edited

Legend:

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

    r13250 r14319  
    135135        $msg = sprintf( __('<a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> is available! Please notify the site administrator.'), $cur->current );
    136136
    137     echo "<div id='update-nag'>$msg</div>";
     137    echo "<div class='update-nag'>$msg</div>";
    138138}
    139139add_action( 'admin_notices', 'update_nag', 3 );
     
    261261        $msg = __('An automated WordPress update has failed to complete! Please notify the site administrator.');
    262262
    263     echo "<div id='update-nag'>$msg</div>";
     263    echo "<div class='update-nag'>$msg</div>";
    264264}
    265265add_action( 'admin_notices', 'maintenance_nag' );
Note: See TracChangeset for help on using the changeset viewer.