|
@@ 1741-1750 (lines=10) @@
|
| 1738 |
|
|
| 1739 |
|
// For each of the "standard" fields, grab their field label and value. |
| 1740 |
|
|
| 1741 |
|
if ( isset( $field_ids['name'] ) ) { |
| 1742 |
|
$field = $this->fields[$field_ids['name']]; |
| 1743 |
|
$comment_author = Grunion_Contact_Form_Plugin::strip_tags( |
| 1744 |
|
stripslashes( |
| 1745 |
|
/** This filter is already documented in core/wp-includes/comment-functions.php */ |
| 1746 |
|
apply_filters( 'pre_comment_author_name', addslashes( $field->value ) ) |
| 1747 |
|
) |
| 1748 |
|
); |
| 1749 |
|
$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 1750 |
|
} |
| 1751 |
|
|
| 1752 |
|
if ( isset( $field_ids['email'] ) ) { |
| 1753 |
|
$field = $this->fields[$field_ids['email']]; |
|
@@ 1752-1761 (lines=10) @@
|
| 1749 |
|
$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 1750 |
|
} |
| 1751 |
|
|
| 1752 |
|
if ( isset( $field_ids['email'] ) ) { |
| 1753 |
|
$field = $this->fields[$field_ids['email']]; |
| 1754 |
|
$comment_author_email = Grunion_Contact_Form_Plugin::strip_tags( |
| 1755 |
|
stripslashes( |
| 1756 |
|
/** This filter is already documented in core/wp-includes/comment-functions.php */ |
| 1757 |
|
apply_filters( 'pre_comment_author_email', addslashes( $field->value ) ) |
| 1758 |
|
) |
| 1759 |
|
); |
| 1760 |
|
$comment_author_email_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 1761 |
|
} |
| 1762 |
|
|
| 1763 |
|
if ( isset( $field_ids['url'] ) ) { |
| 1764 |
|
$field = $this->fields[$field_ids['url']]; |