WordPress.org

Ready to get started?Download WordPress

Forums

Skin the comment box is empty page (3 posts)

  1. jer2eydevil88
    Member
    Posted 6 years ago #

    I am working on a skin that integrates wordpress into my company website. The skin is in testing and someone pointed out that when a comment box is left empty and submitted I am taken to http://maddr.net/wp/wp-comments-post.php in the browser.

    I looked inside that and it states

    if ( empty($status->comment_status) ) {
    	do_action('comment_id_not_found', $comment_post_ID);
    	exit;

    What I would like to do is create a custom page stating that the comment isn't found. How should I accomplish this? Hack the php here to redirect to another page or is there a better route?

  2. moshu
    Member
    Posted 6 years ago #

    Unless you re-write WP... you won't. And talking about "skins" it won't make many friends around here. We design themes for WP, not skins.

  3. moshu
    Member
    Posted 6 years ago #

    It has been posted minutes ago:
    http://wordpress.org/support/topic/125724?replies=4#post-597085
    It's an ugly hack (which means you have to redo it after every upgrade) but it might work.

Topic Closed

This topic has been closed to new replies.

About this Topic