Removed unused global variables from core/core-functions.php.