Make WordPress Core


Ignore:
Timestamp:
11/21/2014 04:40:29 PM (10 years ago)
Author:
helen
Message:

Admin notices: Add more variety and make more generically usable.

There is now a base class of notice, with additional classes of notice-success, notice-warning, notice-error, and a new blue notice-info.

Also corrects some misleading notice colors, such as plugin tested up to warnings and login messages.

props avryl, melchoyce.
fixes #27418.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-advanced.php

    r30350 r30505  
    389389?></h2>
    390390<?php if ( $notice ) : ?>
    391 <div id="notice" class="error"><p id="has-newer-autosave"><?php echo $notice ?></p></div>
     391<div id="notice" class="notice notice-warning"><p id="has-newer-autosave"><?php echo $notice ?></p></div>
    392392<?php endif; ?>
    393393<?php if ( $message ) : ?>
Note: See TracChangeset for help on using the changeset viewer.