[wp-trac] [WordPress Trac] #34306: Twenty Sixteen as default theme
WordPress Trac
noreply at wordpress.org
Mon Nov 16 05:26:45 UTC 2015
#34306: Twenty Sixteen as default theme
----------------------------+-----------------------
Reporter: SergeyBiryukov | Owner:
Type: task (blessed) | Status: assigned
Priority: normal | Milestone: 4.4
Component: Bundled Theme | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
----------------------------+-----------------------
Changes (by dd32):
* owner: dd32 =>
Comment:
[attachment:34306.diff] is my attempt at setting the new default for new
sites where the twentysixteen theme exists on the system.
* It keeps `WP_DEFAULT_THEME` at `twentyfifteen` as that's the latest
theme we can rely upon being on the system.
* It avoids hitting the filesystem to determine WP_DEFAULT_THEME
The alternative is to alter WP_DEFAULT_THEME during the build process, if
`twentysixteen` exists during build, set as default, else `twentyfifteen`.
This would work for new installs, but fail on upgrades (As twentysixteen
won't get installed during update, but may exist within the package, or
when the package was built).
I don't know the answer here.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34306#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list