When running my test suite using poltergeist as the JavaScript driver, I am encountering the following warnings:
JQMIGRATE: jQuery.fn.attr(selected) may use property instead of attribute
JQMIGRATE: jQuery.browser is deprecated
Is that possible to turn them off?
Minified version is "muted" by default:
<script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
Look for jQuery.migrateMute = false
in jquery-migrate.js
and set it to true
Following the answer from benchwarmer, this:
function custom_mute_jquery_migrator() {
echo '<script>jQuery.migrateMute = true;</script>';
}
add_action( 'wp_head', 'custom_mute_jquery_migrator' );
add_action( 'admin_head', 'custom_mute_jquery_migrator' );
Fixed it for me. Thanks @benchwarmer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With