• losttech

    (@losttech)


    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)
  • Moderator t-p

    (@t-p)

    This may be a plugin or theme conflict. Please attempt to disable all plugins, and switch to the default Twenty Twenty theme. If the problem goes away, enable them one by one to identify the source of the problem.

    If you can install plugins, install Health Check. On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site

Viewing 1 replies (of 1 total)
  • The topic ‘Removing WP version from included files breaks publishing’ is closed to new replies.