<?php
/**
 * Error messages in registration form on submit like required fields being empty are HTML5 style.
 * Error messages that appear after being processed by the backend are different. This file makes all
 * error messages not HTML5.
 *
 * @package Nisje
 */

add_action( 'wp_enqueue_scripts', function () {
	wp_enqueue_script( 'coherent-style-in-registration-error-messages', plugins_url( '/js/coherent-style-in-registration-error-messages.js', __FILE__ ), [ 'jquery' ], 1, true );
} );
