@@ 2667-2676 (lines=10) @@ | ||
2664 | $comment_content = $comment_content_label = null; |
|
2665 | ||
2666 | // For each of the "standard" fields, grab their field label and value. |
|
2667 | if ( isset( $field_ids['name'] ) ) { |
|
2668 | $field = $this->fields[ $field_ids['name'] ]; |
|
2669 | $comment_author = Grunion_Contact_Form_Plugin::strip_tags( |
|
2670 | stripslashes( |
|
2671 | /** This filter is already documented in core/wp-includes/comment-functions.php */ |
|
2672 | apply_filters( 'pre_comment_author_name', addslashes( $field->value ) ) |
|
2673 | ) |
|
2674 | ); |
|
2675 | $comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
|
2676 | } |
|
2677 | ||
2678 | if ( isset( $field_ids['email'] ) ) { |
|
2679 | $field = $this->fields[ $field_ids['email'] ]; |
|
@@ 2678-2687 (lines=10) @@ | ||
2675 | $comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
|
2676 | } |
|
2677 | ||
2678 | if ( isset( $field_ids['email'] ) ) { |
|
2679 | $field = $this->fields[ $field_ids['email'] ]; |
|
2680 | $comment_author_email = Grunion_Contact_Form_Plugin::strip_tags( |
|
2681 | stripslashes( |
|
2682 | /** This filter is already documented in core/wp-includes/comment-functions.php */ |
|
2683 | apply_filters( 'pre_comment_author_email', addslashes( $field->value ) ) |
|
2684 | ) |
|
2685 | ); |
|
2686 | $comment_author_email_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
|
2687 | } |
|
2688 | ||
2689 | if ( isset( $field_ids['url'] ) ) { |
|
2690 | $field = $this->fields[ $field_ids['url'] ]; |