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

embedded google maps get transformed into broken calendar shortcodes #175

Closed
btb opened this issue Jun 11, 2021 · 1 comment
Closed

embedded google maps get transformed into broken calendar shortcodes #175

btb opened this issue Jun 11, 2021 · 1 comment

Comments

@btb
Copy link
Contributor

btb commented Jun 11, 2021

The uw_google_calendar_embed_to_shortcode() function is supposed to convert a google calendar iframe into a shortcode, but it actually attempts to transform any content that contains either an iframe tag or a link to google.com/calendar.

The regex will succeed on any google url, so for example this map embed:

<iframe src="https://www.google.com/maps/d/embed?mid=1k7y_cvcBbZQlqZ-mTiz1JpFQ53J9cyCk" width="640" height="480"></iframe>

gets transformed into

[googleapps domain="www" dir="calendar/embed" query="mid=1k7y_cvcBbZQlqZ-mTiz1JpFQ53J9cyCk" width="630" height="480"]

which doesn't work. #164 should fix the problem

@lcaple
Copy link
Contributor

lcaple commented Jul 15, 2021

This is be added in the next release. Thank you!

@lcaple lcaple closed this as completed Jul 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants