I'm registering my javascript files for Wordpress in my functions file as so:
if( !function_exists( "theme_js" ) ) {
function theme_js(){
wp_register_script('wpbs-scripts',
get_template_directory_uri() . '/library/js/min/scripts.min.js',
array('jquery'),
'1.43',
'true' );
wp_enqueue_script('wpbs-scripts');
}
}
add_action( 'wp_enqueue_scripts', 'theme_js' );
In my production environment they are executing properly with the version number as you would expect "scripts.min.js/?ver=1.43. But on the live server the version numbers are a 32 digit string of random numbers and lowercase letters like this "scripts.min.js/?ver=65cat8def2cbb5f145751979a4b2b7cf".
I have no idea what is causing this and it seems to have happened only recently. I started noticing that people needed to refresh the site to see changes.
wp_register_script
?