|
@@ 1830-1839 (lines=10) @@
|
| 1827 |
|
$comment_content = $comment_content_label = null; |
| 1828 |
|
|
| 1829 |
|
// For each of the "standard" fields, grab their field label and value. |
| 1830 |
|
if ( isset( $field_ids['name'] ) ) { |
| 1831 |
|
$field = $this->fields[ $field_ids['name'] ]; |
| 1832 |
|
$comment_author = Grunion_Contact_Form_Plugin::strip_tags( |
| 1833 |
|
stripslashes( |
| 1834 |
|
/** This filter is already documented in core/wp-includes/comment-functions.php */ |
| 1835 |
|
apply_filters( 'pre_comment_author_name', addslashes( $field->value ) ) |
| 1836 |
|
) |
| 1837 |
|
); |
| 1838 |
|
$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 1839 |
|
} |
| 1840 |
|
|
| 1841 |
|
if ( isset( $field_ids['email'] ) ) { |
| 1842 |
|
$field = $this->fields[ $field_ids['email'] ]; |
|
@@ 1841-1850 (lines=10) @@
|
| 1838 |
|
$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 1839 |
|
} |
| 1840 |
|
|
| 1841 |
|
if ( isset( $field_ids['email'] ) ) { |
| 1842 |
|
$field = $this->fields[ $field_ids['email'] ]; |
| 1843 |
|
$comment_author_email = 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_email', addslashes( $field->value ) ) |
| 1847 |
|
) |
| 1848 |
|
); |
| 1849 |
|
$comment_author_email_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 1850 |
|
} |
| 1851 |
|
|
| 1852 |
|
if ( isset( $field_ids['url'] ) ) { |
| 1853 |
|
$field = $this->fields[ $field_ids['url'] ]; |