Wrong path for “messages_” js file

i have this error in console: “https://xxx.com/wp-content/plugins/meta-box/js/js/validation/i18n/messages_it.js?ver=5.7.5 net::ERR_ABORTED 404” and i think this is due to this wrong code (line 28-31 of meta-box/inc/validation.php file):

    if ( file_exists( RWMB_DIR . "js/validation/i18n/messages_$locale.js" ) ) {
        wp_enqueue_script( 'rwmb-validation-i18n', RWMB_JS_URL . "js/validation/i18n/messages_$locale.js", ['rwmb-validation'], RWMB_VER, true );

The “js/” isn’t necessary. Deleting this string the error console disapears.


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer