| 22 | | 1. Start with a clean, default WordPress installation and access to WP-CLI |
| 23 | | 2. Run the above script to install/downgrade plugin versions |
| 24 | | 3. Make sure the plugins above are deactivated |
| 25 | | 4. Open `/wp-admin/plugins.php` in your a modern web browser (I used latest Firefox) |
| 26 | | 5. Open the browser dev tools Network tab so the browser starts collecting network requests |
| 27 | | 6. Run this in the dev tools console to make sure plugin update links are found: |
| | 22 | 1. Start with a clean, default WordPress 5.8 installation and access to WP-CLI |
| | 23 | 2. Apply [https://core.trac.wordpress.org/attachment/ticket/53705/wp-upgrader-error-logging.diff the patch] to add WP_Upgrader error logging |
| | 24 | 3. Run the above script to install/downgrade outdated plugin versions |
| | 25 | 4. Make sure those plugins are deactivated |
| | 26 | 5. Open `/wp-admin/plugins.php` in your a modern web browser (I used latest Firefox) |
| | 27 | 6. Open the browser dev tools Network tab so the browser starts collecting network requests |
| | 28 | 7. Run this in the dev tools console to make sure plugin update links are found: |
| 42 | | 7. When each request completes, a message should printed to the console. Once all the requests are done, you can examine each request's output for failures in the dev tools Network tab. |
| 43 | | 7. Run `wp plugin list` to see if any of the plugins are still on old versions |
| 44 | | 8. Check if any of the plugins disappeared after the upgrade attempt. This was not uncommon in my testing. |
| 45 | | 8. Examine the PHP error logs for failures. Without instrumenting WP_Upgrader with error_log() statements, there won't be much in the logs, but there may be generic warnings about failed FS-related operations. |
| | 43 | 9. Examine the PHP error logs for failures |
| | 44 | 10. When each request completes, a message should printed to the console. Once all the requests are done, you can examine each request's output for failures in the dev tools Network tab. |
| | 45 | 11. Run `wp plugin list` to see if any of the plugins are still on old versions |
| | 46 | 12. Check if any of the plugins disappeared after the upgrade attempt. This was not uncommon in my testing. |
| | 47 | |