|
@@ 1841-1850 (lines=10) @@
|
| 1838 |
|
|
| 1839 |
|
// For each of the "standard" fields, grab their field label and value. |
| 1840 |
|
|
| 1841 |
|
if ( isset( $field_ids['name'] ) ) { |
| 1842 |
|
$field = $this->fields[$field_ids['name']]; |
| 1843 |
|
$comment_author = Grunion_Contact_Form_Plugin::strip_tags( |
| 1844 |
|
stripslashes( |
| 1845 |
|
/** This filter is already documented in core/wp-includes/comment-functions.php */ |
| 1846 |
|
apply_filters( 'pre_comment_author_name', addslashes( $field->value ) ) |
| 1847 |
|
) |
| 1848 |
|
); |
| 1849 |
|
$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 1850 |
|
} |
| 1851 |
|
|
| 1852 |
|
if ( isset( $field_ids['email'] ) ) { |
| 1853 |
|
$field = $this->fields[$field_ids['email']]; |
|
@@ 1852-1861 (lines=10) @@
|
| 1849 |
|
$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 1850 |
|
} |
| 1851 |
|
|
| 1852 |
|
if ( isset( $field_ids['email'] ) ) { |
| 1853 |
|
$field = $this->fields[$field_ids['email']]; |
| 1854 |
|
$comment_author_email = Grunion_Contact_Form_Plugin::strip_tags( |
| 1855 |
|
stripslashes( |
| 1856 |
|
/** This filter is already documented in core/wp-includes/comment-functions.php */ |
| 1857 |
|
apply_filters( 'pre_comment_author_email', addslashes( $field->value ) ) |
| 1858 |
|
) |
| 1859 |
|
); |
| 1860 |
|
$comment_author_email_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 1861 |
|
} |
| 1862 |
|
|
| 1863 |
|
if ( isset( $field_ids['url'] ) ) { |
| 1864 |
|
$field = $this->fields[$field_ids['url']]; |