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