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

Change RegEx to capture url(‘’) declaration for inline styles. #30

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

clifgriffin
Copy link

@clifgriffin clifgriffin commented Jan 17, 2017

We often use inline styles for things like background-images. This is because the image URL is often defined in a meta field. Easier than generating CSS.

For those use cases, WP Stack CDN does not convert the URLs to CDN URLs.

By removing the equal sign from the RegEx pattern, the pattern works properly with these types of URLs. This is obviously a bit less specific, but it's difficult for me to imagine a scenario where this breaks something.

Edit: I pushed an additional commit that adds SVG to the valid extensions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant