Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Query String Test Use Default WordPress Functions #9

Open
tedmasterweb opened this issue May 8, 2019 · 0 comments
Open

Make Query String Test Use Default WordPress Functions #9

tedmasterweb opened this issue May 8, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@tedmasterweb
Copy link
Collaborator

Review the current Query String implementation and consider using the method below for removing the query string parameter.

function ratify_remove_ver_from_resources( $src ) {
    if( strpos( $src, 'ver=' ) ) {
        $src = remove_query_arg( 'ver', $src );
    }
    return $src;
}
add_filter( 'style_loader_src', 'ratify_remove_ver_from_resources', 9999 );
add_filter( 'script_loader_src', 'ratify_remove_ver_from_resources', 9999 );

The current method is clunky.

@tedmasterweb tedmasterweb added the enhancement New feature or request label May 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant