|
@@ 2469-2478 (lines=10) @@
|
| 2466 |
|
$comment_content = $comment_content_label = null; |
| 2467 |
|
|
| 2468 |
|
// For each of the "standard" fields, grab their field label and value. |
| 2469 |
|
if ( isset( $field_ids['name'] ) ) { |
| 2470 |
|
$field = $this->fields[ $field_ids['name'] ]; |
| 2471 |
|
$comment_author = Grunion_Contact_Form_Plugin::strip_tags( |
| 2472 |
|
stripslashes( |
| 2473 |
|
/** This filter is already documented in core/wp-includes/comment-functions.php */ |
| 2474 |
|
apply_filters( 'pre_comment_author_name', addslashes( $field->value ) ) |
| 2475 |
|
) |
| 2476 |
|
); |
| 2477 |
|
$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 2478 |
|
} |
| 2479 |
|
|
| 2480 |
|
if ( isset( $field_ids['email'] ) ) { |
| 2481 |
|
$field = $this->fields[ $field_ids['email'] ]; |
|
@@ 2480-2489 (lines=10) @@
|
| 2477 |
|
$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 2478 |
|
} |
| 2479 |
|
|
| 2480 |
|
if ( isset( $field_ids['email'] ) ) { |
| 2481 |
|
$field = $this->fields[ $field_ids['email'] ]; |
| 2482 |
|
$comment_author_email = Grunion_Contact_Form_Plugin::strip_tags( |
| 2483 |
|
stripslashes( |
| 2484 |
|
/** This filter is already documented in core/wp-includes/comment-functions.php */ |
| 2485 |
|
apply_filters( 'pre_comment_author_email', addslashes( $field->value ) ) |
| 2486 |
|
) |
| 2487 |
|
); |
| 2488 |
|
$comment_author_email_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 2489 |
|
} |
| 2490 |
|
|
| 2491 |
|
if ( isset( $field_ids['url'] ) ) { |
| 2492 |
|
$field = $this->fields[ $field_ids['url'] ]; |