When ever I look at functions.php sideways my site crashes and I have to restore a backup manually via FTP.
Can someone please advise on the correct procedure for adding functions to this file (or its child theme counterpart) so it doesn’t keep spitting the dummy. There is no recovery from within wordpress admin, I’m always forced to overwrite the file on the server with a backup.
That is only one of many examples of very poor architectural decisions within WordPress than many other modern platforms do not suffer from – GO WORDPRESSS!!!
I’m not a WP user, so I’m guessing here, but I imagine it is just the same as any other php script, if you make any error in it, such as missing semicolon or bracket or whatever, you get an error on running it.
If the file is included in all pages, it crashes all pages on the site.
So you just need to be careful when editing, and if it goes wrong, check the error logs to pinpoint the error and debug.