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