Filter / add_action to upgrade.php page

Well, the first lines of that file, not counting comments/headers, are… /** Include user install customize script. */ if ( file_exists(WP_CONTENT_DIR . ‘/install.php’) ) require (WP_CONTENT_DIR . ‘/install.php’); You could include a custom install script with the rest of your code. That seems the most straightforward approach to me. It is hard to say a … Read more

Upgrading to 4.1 fixed parse error

From the error you posted, I suspect that there was some kind of file corruption. The original file /wp-includes/post.php shouldn’t end at line 235. The file should have 5841 lines (in WP version 4.0 and 4.0.1). If it was a file corruption and the error doesn’t appear anymore, the update probably “healed” the damage by … Read more

Auto-Upgrade to 4.2.2 fails because theme functions.php is included instead of wp-includes/functions.php

I am not confident your guess at “being included instead” is accurate. The inclusion of core file is hardcoded in wp-settings.php pretty hard, it would be extremely challenging to subvert under normal circumstances. I have trouble imaging scenario in which functions.php of the theme will be loaded, but add_action() will be unavailable. This simply shouldn’t … Read more

WP not displaying the latest version upgrade button

Did you migrate from managed wp to unmanaged? Check this page https://ru.godaddy.com/help/move-a-managed-wordpress-site-to-an-unmanaged-wordpress-account-19798 In the site directory, locate the /wp-content/mu-plugins/ directory, and delete the gd-system-plugin and gd-system-plugin.php files. In the wp-config.php file, find and remove the reference to gd-config.php. The sample code below from the wp-config.php file shows the general location of the line to delete.

Fastest way to update a theme

git is probably by far the fastest and easiest way to update anything assuming you use git for development. The alternative you hinted to in the question is to use the wordpress update API, but for this you will need to set up an update server. There is some code for that here https://github.com/YahnisElsts/wp-update-server. It … Read more

Plugin upgrade failing during unzip

The name of the temporary file created by the download_url function is 118 characters long. The length of this is causing the full path name of some files or directories created during the unzip process to be longer than the allowable length on Windows. Therefore an error is thrown and the plugin upgrade fails. I … Read more