As detailed in this Trac ticket, when you try to upload a new version of a plugin, you get an error. Meaning, if I have a plugin on my WordPress site that needs to be updated to the latest version, or even to a development version, I can’t just upload a new .zip file to do this. Instead I have to either update from the plugins page or upload a new folder via SFTP.
Following are the steps to replicate the existing issue where you get blocked when trying to upload a new version of a plugin:
#gallery-1 {
margin: auto;
}
#gallery-1 .gallery-item {
float: left;
margin-top: 10px;
text-align: center;
width: 33%;
}
#gallery-1 img {
border: 2px solid #cfcfcf;
}
#gallery-1 .gallery-caption {
margin-left: 0;
}
/* see gallery_shortcode() in wp-includes/media.php */
- Starting with a blank plugin folder
- Download a previous version of a plugin. This example uses an old version of Yoast, 4.9
- Navigate to plugins > upload
- Find the 4.9 .zip
- Upload the 4.9 .zip
- Activate the 4.9 .zip
- Look for the notice to update the plugin
- Downloaded the latest released version of Yoast (5.3.2) as a .zip and navigate to plugins > upload
- Upload the .zip for 5.3.2
- Install 5.3.2
- See the error saying the plugin failed










