|
@@ 2228-2237 (lines=10) @@
|
| 2225 |
|
$comment_content = $comment_content_label = null; |
| 2226 |
|
|
| 2227 |
|
// For each of the "standard" fields, grab their field label and value. |
| 2228 |
|
if ( isset( $field_ids['name'] ) ) { |
| 2229 |
|
$field = $this->fields[ $field_ids['name'] ]; |
| 2230 |
|
$comment_author = Grunion_Contact_Form_Plugin::strip_tags( |
| 2231 |
|
stripslashes( |
| 2232 |
|
/** This filter is already documented in core/wp-includes/comment-functions.php */ |
| 2233 |
|
apply_filters( 'pre_comment_author_name', addslashes( $field->value ) ) |
| 2234 |
|
) |
| 2235 |
|
); |
| 2236 |
|
$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 2237 |
|
} |
| 2238 |
|
|
| 2239 |
|
if ( isset( $field_ids['email'] ) ) { |
| 2240 |
|
$field = $this->fields[ $field_ids['email'] ]; |
|
@@ 2239-2248 (lines=10) @@
|
| 2236 |
|
$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 2237 |
|
} |
| 2238 |
|
|
| 2239 |
|
if ( isset( $field_ids['email'] ) ) { |
| 2240 |
|
$field = $this->fields[ $field_ids['email'] ]; |
| 2241 |
|
$comment_author_email = Grunion_Contact_Form_Plugin::strip_tags( |
| 2242 |
|
stripslashes( |
| 2243 |
|
/** This filter is already documented in core/wp-includes/comment-functions.php */ |
| 2244 |
|
apply_filters( 'pre_comment_author_email', addslashes( $field->value ) ) |
| 2245 |
|
) |
| 2246 |
|
); |
| 2247 |
|
$comment_author_email_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 2248 |
|
} |
| 2249 |
|
|
| 2250 |
|
if ( isset( $field_ids['url'] ) ) { |
| 2251 |
|
$field = $this->fields[ $field_ids['url'] ]; |