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

Add is_customize_preview() polyfill #76

Merged
merged 1 commit into from
Nov 12, 2019

Conversation

schlessera
Copy link
Member

Add a polyfill for the is_customize_preview(), as it is required for the
TwentyTwenty theme's starter content, and will fatal the site if you install
WP 5.3 first (setting TwentyTwenty as the active theme) and then downgrade
to a version of WP lower than 4.0.

Note: This is a quick fix, and a cleaner solution would be to change the
active theme on downgrading, if the current theme declares it is not
supported.

See: WordPress/twentytwenty#973

@schlessera schlessera requested a review from a team as a code owner November 12, 2019 16:53
@schlessera schlessera added this to the 2.1.9 milestone Nov 12, 2019
@schlessera schlessera merged commit 003f185 into master Nov 12, 2019
@schlessera schlessera deleted the add-is-customize-preview-polyfill branch November 12, 2019 16:54
@schlessera schlessera changed the title Add is_customize_preview() polyfill Add is_customize_preview() polyfill Nov 12, 2019
schlessera added a commit that referenced this pull request Jan 5, 2022
Add is_customize_preview() polyfill
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant