Skip to content

Enqueueing scripts with the SP()->plugin->enqueue_script() function does not respect the $ver parameter for some reason #138

@elindydotcom

Description

@elindydotcom

Any JS script enqueued with the SP()->plugin->enqueue_script() function does not seem to respect the $ver parameter for some reason.

These scripts are always served with the WP version as the version number which makes cache-busting impossible.

The SP()->plugin->enqueue_script() function relies on the WP_Scripts and WP_Dependencies class to enqueue the scripts so this might ultimately be an issue with WP itself.

The SP()->plugin->enqueue_script() function is located in sp-api/sp-api-class-spcplugin.php file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions