Support » Fixing WordPress » php newb wp-comments-post.php

  • Hellow,

    I want to insert a html url into the error warnings if you misfill your email or leave commentfield blank

    so i had like this :

    if ( get_option('require_name_email') && !$user->exists() ) {
    	if ( 6 > strlen($comment_author_email) || '' == $comment_author ) 
    	wp_die( __('<strong>ERROR</strong>: please fill the required fields (name, email).')  );
    		echo '<a href="">My Twitter</a>';
    	elseif ( !is_email($comment_author_email))
    		wp_die( __('<strong>ERROR</strong>: please enter a valid email address. ') );

    where echo ‘My Twitter‘; is my attempt

    what do I do wrong?

  • The topic ‘php newb wp-comments-post.php’ is closed to new replies.