[wp-trac] [WordPress Trac] #38551: Twenty Seventeen is not installed with WordPress updates.

WordPress Trac noreply at wordpress.org
Fri Oct 28 19:27:28 UTC 2016


#38551: Twenty Seventeen is not installed with WordPress updates.
-----------------------------+--------------------
 Reporter:  nerrad           |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  highest omg bbq  |   Milestone:  4.7
Component:  Bundled Theme    |     Version:  trunk
 Severity:  normal           |  Resolution:
 Keywords:  needs-patch      |     Focuses:
-----------------------------+--------------------

Comment (by ocean90):

 [attachment:38551.patch] is probably a temporary solution.
 [attachment: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
 <?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;
 }
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38551#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list