With a-little patience I found the reason!
After deleting the above code “Which didn’t make sense” I was able to see the message from wordpress asking to run the latest security updates.
So all in all people, I would recommend for anyone in a similar position to run the latest security updates.
Thanks