#38551 closed defect (bug) (fixed)
Twenty Seventeen is not installed with WordPress updates.
Reported by: | nerrad | Owned by: | |
---|---|---|---|
Milestone: | 4.7 | Priority: | highest omg bbq |
Severity: | normal | Version: | 4.7 |
Component: | Bundled Theme | Keywords: | has-patch |
Focuses: | Cc: |
Description (last modified by )
Readers of the [Beta 1 post](https://wordpress.org/news/) excited to try out the theme will be disappointed when updating using the beta tester plugin because the theme is not bundled.
This is due to work in #34306 (r35738).
The only way currently to install the latest twenty seventeen theme is to have this in one's wp-config.php file.
define( 'CORE_UPGRADE_SKIP_NEW_BUNDLED', false );
Attachments (2)
Change History (16)
This ticket was mentioned in Slack in #core by ocean90. View the logs.
8 years ago
#4
@
8 years ago
- Component changed from Themes to Bundled Theme
- Description modified (diff)
- Keywords needs-patch added
- Priority changed from normal to highest omg bbq
#5
@
8 years ago
38551.patch is probably a temporary solution. 38551.1.patch moves the block into update_core()
to make use of the $development_build
variable. This still needs a way to skip Twenty Sixteen since it could be a git checkout.
To test the patches you can use my custom packages:
<?php add_filter( 'upgrader_pre_download', 'ds_switch_nightly_package', 10, 3 ); function ds_switch_nightly_package( $return, $package, $upgrader ) { if ( 'https://wordpress.org/nightly-builds/wordpress-latest.zip' !== $package ) { return $return; } // wordpress.zip for 38551.patch, wordpress2.zip for 38551.1.patch. $package = 'https://labs.dominikschilling.de/wp/wordpress2.zip'; $upgrader->skin->feedback( 'downloading_package', $package ); $download_file = download_url( $package ); if ( is_wp_error( $download_file ) ) { return new WP_Error('download_failed', $upgrader->strings['download_failed'], $download_file->get_error_message() ); } return $download_file; }
#9
@
8 years ago
This will result in TwentySixteen being installed in addition to TwentySeventeen.
Turns out that's incorrect, we've fixed that issue.
I keep looking at [39064] and thinking i've missed something, but from what I can see, all the checks within the upgrader seem to take into account CORE_UPGRADE_SKIP_NEW_BUNDLED
properly and TwentySixteen won't get re-installed (unless they're updating from pre-4.4).
I expect this is now fixed, I've refreshed the nightly build, if someone updating to the beta via the beta tester OR hitting update on the beta to the nightly should deliver the TwentySeventeen theme to the site.
#10
@
8 years ago
I'm running the Beta Testing plugin set to Bleeding Edge Nightlies on my localhost and had Twentyfourteen, Twentyfifteen, and Twentysixteen installed.
After updating to 39065 today, I had Twentyseventeen (expected) but also gained Twentyten, Twentyeleven, Twentytwelve, and Twentythirteen. I'm thinking the latter might not have been the original intention.
#11
@
8 years ago
Wanted to check on this point as well - will betas/nightlies get updates for Twenty Seventeen, as before?
#12
@
8 years ago
- Resolution set to fixed
- Status changed from new to closed
@helen Yes, they will. See https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/update-core.php?rev=39064&marks=1058-1059,1064-1065#L1036
[39064] works as expected, closing as fixed.
Typo in commit reference. Should be r35738