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