Open Grezvany13 opened 3 years ago
Looks like that is limited to the select2 components (at least for the General
page of Yoast).
I am not sure if this is expected to work, so I am also not sure if this is something that'll be considered to change. So I would advise not to do this for our plugin files.
Please give us a description of what happened.
Admin page of plugin breaks when the
?ver=
tag is removed from styles and scripts globally (see reproduction). Both CSS and JS files from the plugin are not loaded anymore, causing the styling and some functionalities to break.Console returns the error:
Please describe what you expected to happen and why.
It should be possible, for security reasons, to remove the version tag from loaded files without breaking anything. By default does WordPress add its own version number, which is a security risk.
How can we reproduce this behavior?
/wp-admin/admin.php?page=wpseo_dashboard
Technical info
Used versions