|
@@ 2630-2639 (lines=10) @@
|
| 2627 |
|
$comment_content = $comment_content_label = null; |
| 2628 |
|
|
| 2629 |
|
// For each of the "standard" fields, grab their field label and value. |
| 2630 |
|
if ( isset( $field_ids['name'] ) ) { |
| 2631 |
|
$field = $this->fields[ $field_ids['name'] ]; |
| 2632 |
|
$comment_author = Grunion_Contact_Form_Plugin::strip_tags( |
| 2633 |
|
stripslashes( |
| 2634 |
|
/** This filter is already documented in core/wp-includes/comment-functions.php */ |
| 2635 |
|
apply_filters( 'pre_comment_author_name', addslashes( $field->value ) ) |
| 2636 |
|
) |
| 2637 |
|
); |
| 2638 |
|
$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 2639 |
|
} |
| 2640 |
|
|
| 2641 |
|
if ( isset( $field_ids['email'] ) ) { |
| 2642 |
|
$field = $this->fields[ $field_ids['email'] ]; |
|
@@ 2641-2650 (lines=10) @@
|
| 2638 |
|
$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 2639 |
|
} |
| 2640 |
|
|
| 2641 |
|
if ( isset( $field_ids['email'] ) ) { |
| 2642 |
|
$field = $this->fields[ $field_ids['email'] ]; |
| 2643 |
|
$comment_author_email = Grunion_Contact_Form_Plugin::strip_tags( |
| 2644 |
|
stripslashes( |
| 2645 |
|
/** This filter is already documented in core/wp-includes/comment-functions.php */ |
| 2646 |
|
apply_filters( 'pre_comment_author_email', addslashes( $field->value ) ) |
| 2647 |
|
) |
| 2648 |
|
); |
| 2649 |
|
$comment_author_email_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 2650 |
|
} |
| 2651 |
|
|
| 2652 |
|
if ( isset( $field_ids['url'] ) ) { |
| 2653 |
|
$field = $this->fields[ $field_ids['url'] ]; |