|Reported by:||amattie||Owned by:||azaozz|
It seems that there's currently no way to perform script and css resource versioning manually with wp_enqueue_script and wp_enqueue_style. When false, null, an empty string, or anything that evaluates to false is passed as the version argument, the version of WordPress is appended to the asset.
My proposal is to skip the setting of the version in the query string for the asset if an empty string is passed in for that argument. The way I did this in my patch was by simply implementing strict type checking in a few key spots. This change leaves the default functionality in place while still providing a way for developers to override the version setting functionality.
Change History (24)
- Keywords needs-patch added
- Owner set to azaozz
- Type changed from defect (bug) to enhancement