automatic-theme-plugin-update
automatic-theme-plugin-update copied to clipboard
causing a [PHP Fatal error: Call to undefined function auth_redirect()]
Hello.
It seems that this piece of code (for the plugin update.php) is causing a Fatal Error
Call to undefined function auth_redirect() in /var/my/private/path/wp-admin/admin.php on line 80
I wondered if anyone else had this issue?
Strangely the error occurs just from including the update.php file. Even if everything in the update.php is commented out! Naming conflict?
Any ideas?
How is the file being included. If it's not using the full path to the file then yes, it could be trying to load the update.php from within WP itself. The file should always be included using the full path, most likely by using plugin_dir_path.