@@ 1759-1768 (lines=10) @@ | ||
1756 | ||
1757 | // For each of the "standard" fields, grab their field label and value. |
|
1758 | ||
1759 | if ( isset( $field_ids['name'] ) ) { |
|
1760 | $field = $this->fields[$field_ids['name']]; |
|
1761 | $comment_author = Grunion_Contact_Form_Plugin::strip_tags( |
|
1762 | stripslashes( |
|
1763 | /** This filter is already documented in core/wp-includes/comment-functions.php */ |
|
1764 | apply_filters( 'pre_comment_author_name', addslashes( $field->value ) ) |
|
1765 | ) |
|
1766 | ); |
|
1767 | $comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
|
1768 | } |
|
1769 | ||
1770 | if ( isset( $field_ids['email'] ) ) { |
|
1771 | $field = $this->fields[$field_ids['email']]; |
|
@@ 1770-1779 (lines=10) @@ | ||
1767 | $comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
|
1768 | } |
|
1769 | ||
1770 | if ( isset( $field_ids['email'] ) ) { |
|
1771 | $field = $this->fields[$field_ids['email']]; |
|
1772 | $comment_author_email = Grunion_Contact_Form_Plugin::strip_tags( |
|
1773 | stripslashes( |
|
1774 | /** This filter is already documented in core/wp-includes/comment-functions.php */ |
|
1775 | apply_filters( 'pre_comment_author_email', addslashes( $field->value ) ) |
|
1776 | ) |
|
1777 | ); |
|
1778 | $comment_author_email_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
|
1779 | } |
|
1780 | ||
1781 | if ( isset( $field_ids['url'] ) ) { |
|
1782 | $field = $this->fields[$field_ids['url']]; |