Removing WP version from included files breaks publishing
-
I updated to the latest WordPress version 5.5.3 and since then, publishing anything (pages/posts/custom post types) gets stuck at draft. If I go into quick edit, only then can I publish it to ‘Published’
After sifting through functions.php and inserting return; after each function, I have isolated the problem to be this bit of code:
function vc_remove_wp_ver_css_js( $src ) { if ( strpos( $src, 'ver=' ) ) $src = remove_query_arg( 'ver', $src ); return $src; } add_filter( 'style_loader_src', 'vc_remove_wp_ver_css_js', 9999 ); add_filter( 'script_loader_src', 'vc_remove_wp_ver_css_js', 9999 );
This was inserted to remove the version numbers of included files for security reasons but it breaks publishing things.
Any ideas on a solution to this? Or is this function just completely no useable with WP 5.5.3
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Removing WP version from included files breaks publishing’ is closed to new replies.