|
@@ 2694-2703 (lines=10) @@
|
| 2691 |
|
$comment_content = $comment_content_label = null; |
| 2692 |
|
|
| 2693 |
|
// For each of the "standard" fields, grab their field label and value. |
| 2694 |
|
if ( isset( $field_ids['name'] ) ) { |
| 2695 |
|
$field = $this->fields[ $field_ids['name'] ]; |
| 2696 |
|
$comment_author = Grunion_Contact_Form_Plugin::strip_tags( |
| 2697 |
|
stripslashes( |
| 2698 |
|
/** This filter is already documented in core/wp-includes/comment-functions.php */ |
| 2699 |
|
apply_filters( 'pre_comment_author_name', addslashes( $field->value ) ) |
| 2700 |
|
) |
| 2701 |
|
); |
| 2702 |
|
$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 2703 |
|
} |
| 2704 |
|
|
| 2705 |
|
if ( isset( $field_ids['email'] ) ) { |
| 2706 |
|
$field = $this->fields[ $field_ids['email'] ]; |
|
@@ 2705-2714 (lines=10) @@
|
| 2702 |
|
$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 2703 |
|
} |
| 2704 |
|
|
| 2705 |
|
if ( isset( $field_ids['email'] ) ) { |
| 2706 |
|
$field = $this->fields[ $field_ids['email'] ]; |
| 2707 |
|
$comment_author_email = Grunion_Contact_Form_Plugin::strip_tags( |
| 2708 |
|
stripslashes( |
| 2709 |
|
/** This filter is already documented in core/wp-includes/comment-functions.php */ |
| 2710 |
|
apply_filters( 'pre_comment_author_email', addslashes( $field->value ) ) |
| 2711 |
|
) |
| 2712 |
|
); |
| 2713 |
|
$comment_author_email_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 2714 |
|
} |
| 2715 |
|
|
| 2716 |
|
if ( isset( $field_ids['url'] ) ) { |
| 2717 |
|
$field = $this->fields[ $field_ids['url'] ]; |