What does “Do not deregister the jquery script in the administration area” mean?

Based on the error…

add_action( 'wp_enqueue_scripts', function(){
    if (is_admin()) return; // don't dequeue on the backend
    wp_deregister_script( 'jquery' );
    wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js', array(), null, false );
    wp_enqueue_script( 'jquery');
});

Honestly, unless you have tremendous traffic over a broad geographic area, I’d say that CDNs are grossly over-rated. I’ve watched the hangup on sites I’ve managed and very often the bottleneck is the CDN– I’m looking at you Google. So, this may not be a solution worth implementing.

Second, dequeueing Core scripts is a dangerous game. Plugins and themes depend upon those scripts. If you load a different version than the one expected scripts can fail.

Clearly turning off debugging is workaround but very bad practise
isn’t it?

Production or development? Debugging should be off on a production server and turned on only while debugging.

Leave a Comment