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 polyfill for get_theme_file_uri() #72

Merged

Conversation

schlessera
Copy link
Member

Add a polyfill for the get_theme_file_uri(), 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.7.

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 8, 2019 15:24
@schlessera schlessera added this to the 2.1.6 milestone Nov 8, 2019
@schlessera schlessera merged commit 006eca0 into master Nov 8, 2019
@schlessera schlessera deleted the fix-broken-tests-for-twentytwenty-starter-content branch November 8, 2019 16:04
schlessera added a commit that referenced this pull request Jan 5, 2022
Add polyfill for `get_theme_file_uri()`
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