Make WordPress Core

Ticket #61896: 61896.diff

File 61896.diff, 529 bytes (added by xipasduarte, 8 weeks ago)

Base class logic on $_REQUEST['error']

  • src/wp-admin/edit-tag-form.php

    diff --git a/src/wp-admin/edit-tag-form.php b/src/wp-admin/edit-tag-form.php
    index 0b59e36c84..6263caba3d 100644
    a b do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); ?> 
    7272<h1><?php echo $tax->labels->edit_item; ?></h1>
    7373
    7474<?php
    75 $class = ( isset( $msg ) && 5 === $msg ) ? 'error' : 'success';
     75$class = isset( $_REQUEST['error'] ) ? 'error' : 'success';
    7676
    7777if ( $message ) {
    7878        $message = '<p><strong>' . $message . '</strong></p>';