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