|
@@ 1823-1832 (lines=10) @@
|
| 1820 |
|
|
| 1821 |
|
// For each of the "standard" fields, grab their field label and value. |
| 1822 |
|
|
| 1823 |
|
if ( isset( $field_ids['name'] ) ) { |
| 1824 |
|
$field = $this->fields[$field_ids['name']]; |
| 1825 |
|
$comment_author = Grunion_Contact_Form_Plugin::strip_tags( |
| 1826 |
|
stripslashes( |
| 1827 |
|
/** This filter is already documented in core/wp-includes/comment-functions.php */ |
| 1828 |
|
apply_filters( 'pre_comment_author_name', addslashes( $field->value ) ) |
| 1829 |
|
) |
| 1830 |
|
); |
| 1831 |
|
$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 1832 |
|
} |
| 1833 |
|
|
| 1834 |
|
if ( isset( $field_ids['email'] ) ) { |
| 1835 |
|
$field = $this->fields[$field_ids['email']]; |
|
@@ 1834-1843 (lines=10) @@
|
| 1831 |
|
$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 1832 |
|
} |
| 1833 |
|
|
| 1834 |
|
if ( isset( $field_ids['email'] ) ) { |
| 1835 |
|
$field = $this->fields[$field_ids['email']]; |
| 1836 |
|
$comment_author_email = Grunion_Contact_Form_Plugin::strip_tags( |
| 1837 |
|
stripslashes( |
| 1838 |
|
/** This filter is already documented in core/wp-includes/comment-functions.php */ |
| 1839 |
|
apply_filters( 'pre_comment_author_email', addslashes( $field->value ) ) |
| 1840 |
|
) |
| 1841 |
|
); |
| 1842 |
|
$comment_author_email_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 1843 |
|
} |
| 1844 |
|
|
| 1845 |
|
if ( isset( $field_ids['url'] ) ) { |
| 1846 |
|
$field = $this->fields[$field_ids['url']]; |