[Solved] Is there a way to create a new site with WP 4.9.8?

Now that WP 5.0 has hit the streets, Flywheel installs 5.0 as the default. Is there a way to create a new site with Wordpress 4.9.8?

Alternatively, can I revert the new site (on Flywheel) to WP 4.9.8? Many thanks!

You can use wp-cli to revert to 4.9.8. I think the following will work. (Not tested)

wp update core —-release=“4.9.8” —-force

Thanks for the giant hint - I got it working. The wp command needed straight quotes, not typographic quotes, and slightly different options. Here’s what I did:

  1. Starting from a fresh Flywheel install (defaults to WP 5.0 as of early December 2018)

  2. Right-click/control-click on the site’s entry on the left, and choose Open Site SSH

  3. Issue the command: wp core update --version="4.9.8" --force

  4. The output is:

    root@e96ae0be7913:/#    wp core update --version="4.9.8" --force
    Updating to version 4.9.8 (en_US)...
    Downloading update from https://wordpress.org/wordpress-4.9.8.zip...
    Unpacking the update...
    Cleaning up files...
    File removed: wp-includes/css/dist/block-library/editor.min.css
    File removed: wp-includes/css/dist/block-library/style-rtl.min.css
    
    ... many lines removed from this output...
    
    File removed: wp-includes/js/dist/url.js
    File removed: wp-includes/class-wp-block-type-registry.php
    File removed: wp-admin/edit-form-blocks.php
    150 files cleaned up.
    Success: WordPress updated successfully.
    root@e96ae0be7913:/# 
    
  5. Dashboard shows Wordpress 4.9.8 is running

1 Like

Sorry about the quote style. It’s a consequence of typing on my iPad.