Support » Themes and Templates » Overriding wp_die from within theme?

  • Apologies if this has been asked before, I couldn’t find it in the forum.

    I am happily working on my theme, the problem I am having is catching wp_die in the comments submission page, wp-comments-post.php. If the user submits no data, the script calls wp_die, which has HTML hard coded in it (oh dear). I actually want the page to be styled like the rest of the site. I looked at and could find no hooks to do so.

    Of course, I could just edit functions.php, but that would make upgrading a pain.

    Any suggestions? Thanks in advance.

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Overriding wp_die from within theme?’ is closed to new replies.