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.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Wrong path for “messages_” js file’ is closed to new replies.