|
@@ 2090-2099 (lines=10) @@
|
| 2087 |
|
$comment_content = $comment_content_label = null; |
| 2088 |
|
|
| 2089 |
|
// For each of the "standard" fields, grab their field label and value. |
| 2090 |
|
if ( isset( $field_ids['name'] ) ) { |
| 2091 |
|
$field = $this->fields[ $field_ids['name'] ]; |
| 2092 |
|
$comment_author = Grunion_Contact_Form_Plugin::strip_tags( |
| 2093 |
|
stripslashes( |
| 2094 |
|
/** This filter is already documented in core/wp-includes/comment-functions.php */ |
| 2095 |
|
apply_filters( 'pre_comment_author_name', addslashes( $field->value ) ) |
| 2096 |
|
) |
| 2097 |
|
); |
| 2098 |
|
$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 2099 |
|
} |
| 2100 |
|
|
| 2101 |
|
if ( isset( $field_ids['email'] ) ) { |
| 2102 |
|
$field = $this->fields[ $field_ids['email'] ]; |
|
@@ 2101-2110 (lines=10) @@
|
| 2098 |
|
$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 2099 |
|
} |
| 2100 |
|
|
| 2101 |
|
if ( isset( $field_ids['email'] ) ) { |
| 2102 |
|
$field = $this->fields[ $field_ids['email'] ]; |
| 2103 |
|
$comment_author_email = Grunion_Contact_Form_Plugin::strip_tags( |
| 2104 |
|
stripslashes( |
| 2105 |
|
/** This filter is already documented in core/wp-includes/comment-functions.php */ |
| 2106 |
|
apply_filters( 'pre_comment_author_email', addslashes( $field->value ) ) |
| 2107 |
|
) |
| 2108 |
|
); |
| 2109 |
|
$comment_author_email_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 2110 |
|
} |
| 2111 |
|
|
| 2112 |
|
if ( isset( $field_ids['url'] ) ) { |
| 2113 |
|
$field = $this->fields[ $field_ids['url'] ]; |