|
@@ 1873-1882 (lines=10) @@
|
| 1870 |
|
$comment_content = $comment_content_label = null; |
| 1871 |
|
|
| 1872 |
|
// For each of the "standard" fields, grab their field label and value. |
| 1873 |
|
if ( isset( $field_ids['name'] ) ) { |
| 1874 |
|
$field = $this->fields[ $field_ids['name'] ]; |
| 1875 |
|
$comment_author = Grunion_Contact_Form_Plugin::strip_tags( |
| 1876 |
|
stripslashes( |
| 1877 |
|
/** This filter is already documented in core/wp-includes/comment-functions.php */ |
| 1878 |
|
apply_filters( 'pre_comment_author_name', addslashes( $field->value ) ) |
| 1879 |
|
) |
| 1880 |
|
); |
| 1881 |
|
$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 1882 |
|
} |
| 1883 |
|
|
| 1884 |
|
if ( isset( $field_ids['email'] ) ) { |
| 1885 |
|
$field = $this->fields[ $field_ids['email'] ]; |
|
@@ 1884-1893 (lines=10) @@
|
| 1881 |
|
$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 1882 |
|
} |
| 1883 |
|
|
| 1884 |
|
if ( isset( $field_ids['email'] ) ) { |
| 1885 |
|
$field = $this->fields[ $field_ids['email'] ]; |
| 1886 |
|
$comment_author_email = Grunion_Contact_Form_Plugin::strip_tags( |
| 1887 |
|
stripslashes( |
| 1888 |
|
/** This filter is already documented in core/wp-includes/comment-functions.php */ |
| 1889 |
|
apply_filters( 'pre_comment_author_email', addslashes( $field->value ) ) |
| 1890 |
|
) |
| 1891 |
|
); |
| 1892 |
|
$comment_author_email_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 1893 |
|
} |
| 1894 |
|
|
| 1895 |
|
if ( isset( $field_ids['url'] ) ) { |
| 1896 |
|
$field = $this->fields[ $field_ids['url'] ]; |