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