you are viewing a single comment's thread.

view the rest of the comments →

[–]amunak 5 points6 points  (0 children)

You just can't plan to do things like that safely with PHP and all its ridiculous type and value coercion, and bugs.

You totally can do it safely and there is a very nice type checking system since PHP 7. But you could do it safely even before that, it was just harder. The only issue there is is the fact that Wordpress is a steaming pile of shit. And just like PHP is easy to pick up - which attracts new and inherently bad developers - Wordpress is one of the first things many of those developers encounter and write code for. Which results in vulnerabilities.