When a user doesn’t enter all required things in comment box area and click on submit comment button, a new page is shown telling user that some required fields are missing such as name, email, etc.
The page contains "WordPress > Error"
text in titlebar.
I want to replace this text with my custom text.
I have been doing this by manually replacing following line in wp-includesfunctions.php
file:
$title = $have_gettext ? __('WordPress ⺠Error') : 'WordPress ⺠Error';
Now I donât want to edit core file. I want to know if it is possible to do the same thing by using my blog theme’s functions.php
file?
Changing interface string is often done using
gettext
translation filter, but I was in the mood for something different so creatively mangled die handler to achieve it: