|
@@ 1856-1865 (lines=10) @@
|
| 1853 |
|
$comment_content = $comment_content_label = null; |
| 1854 |
|
|
| 1855 |
|
// For each of the "standard" fields, grab their field label and value. |
| 1856 |
|
if ( isset( $field_ids['name'] ) ) { |
| 1857 |
|
$field = $this->fields[ $field_ids['name'] ]; |
| 1858 |
|
$comment_author = Grunion_Contact_Form_Plugin::strip_tags( |
| 1859 |
|
stripslashes( |
| 1860 |
|
/** This filter is already documented in core/wp-includes/comment-functions.php */ |
| 1861 |
|
apply_filters( 'pre_comment_author_name', addslashes( $field->value ) ) |
| 1862 |
|
) |
| 1863 |
|
); |
| 1864 |
|
$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 1865 |
|
} |
| 1866 |
|
|
| 1867 |
|
if ( isset( $field_ids['email'] ) ) { |
| 1868 |
|
$field = $this->fields[ $field_ids['email'] ]; |
|
@@ 1867-1876 (lines=10) @@
|
| 1864 |
|
$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 1865 |
|
} |
| 1866 |
|
|
| 1867 |
|
if ( isset( $field_ids['email'] ) ) { |
| 1868 |
|
$field = $this->fields[ $field_ids['email'] ]; |
| 1869 |
|
$comment_author_email = Grunion_Contact_Form_Plugin::strip_tags( |
| 1870 |
|
stripslashes( |
| 1871 |
|
/** This filter is already documented in core/wp-includes/comment-functions.php */ |
| 1872 |
|
apply_filters( 'pre_comment_author_email', addslashes( $field->value ) ) |
| 1873 |
|
) |
| 1874 |
|
); |
| 1875 |
|
$comment_author_email_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 1876 |
|
} |
| 1877 |
|
|
| 1878 |
|
if ( isset( $field_ids['url'] ) ) { |
| 1879 |
|
$field = $this->fields[ $field_ids['url'] ]; |