diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php index b8a422e2fa..044ae0c461 100644 --- a/wp-admin/edit-tags.php +++ b/wp-admin/edit-tags.php @@ -65,7 +65,7 @@ case 'add-tag': if ( $ret && !is_wp_error( $ret ) ) $location = add_query_arg( 'message', 1, $location ); else - $location = add_query_arg( 'message', 4, $location ); + $location = add_query_arg( array( 'error' => true, 'message' => 4 ), $location ); break; @@ -156,7 +156,7 @@ case 'editedtag': if ( $ret && !is_wp_error( $ret ) ) $location = add_query_arg( 'message', 3, $location ); else - $location = add_query_arg( 'message', 5, $location ); + $location = add_query_arg( array( 'error' => true, 'message' => 5 ), $location ); break; } @@ -297,6 +297,7 @@ if ( isset( $_REQUEST['message'] ) && ( $msg = (int) $_REQUEST['message'] ) ) { $message = $messages['_item'][ $msg ]; } +$class = ( isset( $_REQUEST['error'] ) ) ? 'error' : 'updated'; ?>
@@ -306,8 +307,8 @@ if ( !empty($_REQUEST['s']) ) -

-">

+
diff --git a/wp-includes/version.php b/wp-includes/version.php index d75f986c53..c542f94b4b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-beta1-31822'; +$wp_version = '4.2-beta1-31823'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.