Opened 7 years ago
Closed 7 years ago
#47299 closed enhancement (fixed)
Site Health: get_test_theme_version() + WP_DEFAULT_THEME = use get_core_default_theme() !
| Reported by: | juliobox | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.3 |
| Component: | Site Health | Version: | 5.2 |
| Severity: | minor | Keywords: | 2nd-opinion site-health has-patch |
| Cc: | Focuses: |
Description
Hello there
The test for get_test_theme_version() is checking if WP_DEFAULT_THEME is set to one of our installed theme. If not, the SH will tell us to use one.
But since I have a twentystuff theme on my installation, WordPress will find a fallback. Thanks to get_core_default_theme()!
We should also use this as a check.
I just did this:
<?php if ( ! $has_default_theme ) {
becomes:
<?php if ( ! $has_default_theme && ! WP_Theme::get_core_default_theme() ) {
That does the correct test I guess.
Thank you!
Attachments (1)
Change History (7)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Makes sense to me,
populate_options()andvalidate_current_theme()do the same.