@@ 2490-2499 (lines=10) @@ | ||
2487 | $comment_content = $comment_content_label = null; |
|
2488 | ||
2489 | // For each of the "standard" fields, grab their field label and value. |
|
2490 | if ( isset( $field_ids['name'] ) ) { |
|
2491 | $field = $this->fields[ $field_ids['name'] ]; |
|
2492 | $comment_author = Grunion_Contact_Form_Plugin::strip_tags( |
|
2493 | stripslashes( |
|
2494 | /** This filter is already documented in core/wp-includes/comment-functions.php */ |
|
2495 | apply_filters( 'pre_comment_author_name', addslashes( $field->value ) ) |
|
2496 | ) |
|
2497 | ); |
|
2498 | $comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
|
2499 | } |
|
2500 | ||
2501 | if ( isset( $field_ids['email'] ) ) { |
|
2502 | $field = $this->fields[ $field_ids['email'] ]; |
|
@@ 2501-2510 (lines=10) @@ | ||
2498 | $comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
|
2499 | } |
|
2500 | ||
2501 | if ( isset( $field_ids['email'] ) ) { |
|
2502 | $field = $this->fields[ $field_ids['email'] ]; |
|
2503 | $comment_author_email = Grunion_Contact_Form_Plugin::strip_tags( |
|
2504 | stripslashes( |
|
2505 | /** This filter is already documented in core/wp-includes/comment-functions.php */ |
|
2506 | apply_filters( 'pre_comment_author_email', addslashes( $field->value ) ) |
|
2507 | ) |
|
2508 | ); |
|
2509 | $comment_author_email_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
|
2510 | } |
|
2511 | ||
2512 | if ( isset( $field_ids['url'] ) ) { |
|
2513 | $field = $this->fields[ $field_ids['url'] ]; |