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

Return empty array when template and stylesheet are empty #4408

Conversation

danielbachhuber
Copy link
Member

See https://core.trac.wordpress.org/ticket/57928

Returns an empty array from wp_get_active_and_valid_themes() when get_template() and get_stylesheet() return falsy values. The empty array prevents wp-content/themes/functions.php from being loaded erroneously.

@danielbachhuber danielbachhuber self-assigned this May 1, 2023
@danielbachhuber
Copy link
Member Author

Closing in favor of #4409

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