WordPress.org

Make WordPress Core

Ticket #31241: 31241.2.diff

File 31241.2.diff, 588 bytes (added by mzak, 5 years ago)

Use the message key, rather than the error string to determine which class to output

  • wp-admin/edit-tags.php

     
    306306</h2>
    307307
    308308<?php if ( $message ) : ?>
    309 <div id="message" class="updated"><p><?php echo $message; ?></p></div>
     309<div id="message" class="<?php if ( $msg == 4 || $msg == 5 ) echo 'error'; else echo 'updated'; ?>"><p><?php echo $message; ?></p></div>
    310310<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
    311311endif; ?>
    312312<div id="ajax-response"></div>