-
Notifications
You must be signed in to change notification settings - Fork 9
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
Playground Previews #118
Playground Previews #118
Conversation
eb92088
to
54c6c58
Compare
…between variations and the current URL.
…views. See r13851. See WordPress/wporg-theme-directory#118. git-svn-id: https://meta.svn.wordpress.org/sites/trunk@13854 74240141-8908-4e6f-9713-ba540dce6ec7
…sult, always be provided to the JS.
After this is merged, you'll be able to compare these two urls:
|
a092e22
to
92e6cfa
Compare
…This ensures that unset vars are removed.
@ryelle This has removed the Is this fine to do? Is there an edge-case that I'm not aware of that we care about? |
I added it assuming we would want to avoid showing non-wporg sites in the previewer, but never followed up to see if that was even possible from the plugin code— so no, I was just trying to be extra-cautious. |
See #14
This is a companion to WordPress/wordpress.org#329 exploring adding Theme Previews using Playground to the new theme.
Notes:
This relies upon the above PR for the rest api endpoint.MergedSome changes in the above PR are irrelevant with the new themew.org/themes/$theme/preview/
is only used on WordPress.org and is NOT the core previewerwp-themes.com
immediately, and it's probably likely that we'd duplicate the previewer offered here onto wp-themes.com.Took some shortcuts in just deleting some of the previewer code with the overlays to speed up development (I was frustrated with Playground enough, I couldn't determine if playground was at fault or I was using interactivity api wrong)This is actually a very small change code-wise, but the user-experience is not at all ideal IMHO, based on the load times.