Hi I am trying to enqueue bootstrap javascript file. But it depends on JQuery and Popper.js. So, I am loading PopperJS from CDN and I am mentioning both JQuery and PopperJS as dependencies on the Bootstrap enqueue. I am not enqueueing JQuery because if learned that Wordpress loads it if you just mention it as a dependency. Like the following:-
wp_enqueue_script( 'popper', 'https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js', array(), null, true );
wp_enqueue_script( 'bootstrap', 'https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js', array('jquery', 'popper'), null, true );
However, when I view the source code of my Wordpress site, I see the JQuery version loaded is 1.12.4. The current stable version is 3.2.1. So, how do I rectify this problem. Should I do the unrecommended thing of saving JQuery file to server and enqueueing it separately?