I was just going to post this.
I’m not sure why this is being enqueued in the first place. It doesn’t appear that float the head script is being used anywhere on the table screens as far as I can tell.
Anyway, here’s the problem:
if ( $this->is_columns_screen() ) {
wp_register_script( 'jquery-floatthead', CPAC_URL . 'external/floatThead/jquery.floatThead.js', array( 'jquery' ), CPAC_VERSION );
}
And the script:
codepress-admin-columns/external/<strong>floatthead</strong>/jquery.floatThead.js
floatThead vs. floatthead
On a side note float the head does not work with wordpress tables. I posted a ticket about it a few weeks ago. Ironically I was in the process of building an extension that sticks the admin table headers using it but it breaks wordpress. Not sure if that’s what codepress was using it for, but just a warning if it was…
https://core.trac.ww.wp.xz.cn/ticket/29030
Let’s hope the plugin author is going to addrress this issue. There is no point in modifying the plugin ourselves since the changes will be lost with the next update.
Eusebiu deregister it until the next update:
wp_deregister_script( 'jquery-floatthead' );
I use code-snippets for things like this. Really useful for short simple functions that you don’t want to put in your functions.php or another plugin.
I use the plugin on many websites, most of them for clients, so manually modifying the files is not really an option, since for some I don’t have FTP access anymore.
But I will do that for my own websites.. 🙂
<?php
if ( is_plugin_active('codepress-admin-columns/codepress-admin-columns.php') ) {
function remove_cpac_floatthead() {
wp_dequeue_script( 'jquery-floatthead' );
wp_deregister_script( 'jquery-floatthead' );
}
add_action( 'admin_print_scripts', 'remove_cpac_floatthead', 100 );
}
}
That will do! Thanks!
You are resourceful! 🙂
We’re very sorry for the inconvenience, we’ve fixed the error in the just-released version 2.2.5.1.
Best,
Jesper