|
@@ 1416-1425 (lines=10) @@
|
| 1413 |
|
|
| 1414 |
|
// For each of the "standard" fields, grab their field label and value. |
| 1415 |
|
|
| 1416 |
|
if ( isset( $field_ids['name'] ) ) { |
| 1417 |
|
$field = $this->fields[$field_ids['name']]; |
| 1418 |
|
$comment_author = Grunion_Contact_Form_Plugin::strip_tags( |
| 1419 |
|
stripslashes( |
| 1420 |
|
/** This filter is already documented in core/wp-includes/comment-functions.php */ |
| 1421 |
|
apply_filters( 'pre_comment_author_name', addslashes( $field->value ) ) |
| 1422 |
|
) |
| 1423 |
|
); |
| 1424 |
|
$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 1425 |
|
} |
| 1426 |
|
|
| 1427 |
|
if ( isset( $field_ids['email'] ) ) { |
| 1428 |
|
$field = $this->fields[$field_ids['email']]; |
|
@@ 1427-1436 (lines=10) @@
|
| 1424 |
|
$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 1425 |
|
} |
| 1426 |
|
|
| 1427 |
|
if ( isset( $field_ids['email'] ) ) { |
| 1428 |
|
$field = $this->fields[$field_ids['email']]; |
| 1429 |
|
$comment_author_email = Grunion_Contact_Form_Plugin::strip_tags( |
| 1430 |
|
stripslashes( |
| 1431 |
|
/** This filter is already documented in core/wp-includes/comment-functions.php */ |
| 1432 |
|
apply_filters( 'pre_comment_author_email', addslashes( $field->value ) ) |
| 1433 |
|
) |
| 1434 |
|
); |
| 1435 |
|
$comment_author_email_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 1436 |
|
} |
| 1437 |
|
|
| 1438 |
|
if ( isset( $field_ids['url'] ) ) { |
| 1439 |
|
$field = $this->fields[$field_ids['url']]; |