Hey @foostore
Thanks for reporting the issue. I’ve managed to narrow it down to the Carbon Fields library that I’m using within the Posterno plugin. The library generates the custom fields in the admin panel. It’s also been reported by someone else on the github repository of carbon-fields https://github.com/htmlburger/carbon-fields/issues/824 – seems the solution is to update the library within my plugin.
Before updating the library within Posterno, I’ll have to do some tests to make sure that everything works fine so it’ll take me a few days before I release the update.
Meanwhile, I wrote a snippet that removes the javascript loaded by carbonfields in the admin pages where the issue occurs. So you can keep working on your sites while I work on the update.
Please copy and paste the following code into your theme’s functions.php file:
add_action(
'admin_init',
function() {
global $pagenow;
if ( $pagenow === 'theme-install.php' || $pagenow === 'customize.php' || $pagenow === 'upload.php' ) {
$loader = \Carbon_Fields\Carbon_Fields::resolve( 'loader' );
remove_action( 'admin_print_footer_scripts', array( $loader, 'enqueue_assets' ), 9 );
}
}
);
As soon as I’ve released version 1.2.6 of Posterno, please remove the snippet from your theme’s functions.php file. I’ll also be posting another message here to let you know of the update.
Regards.