@@ 2391-2400 (lines=10) @@ | ||
2388 | $comment_content = $comment_content_label = null; |
|
2389 | ||
2390 | // For each of the "standard" fields, grab their field label and value. |
|
2391 | if ( isset( $field_ids['name'] ) ) { |
|
2392 | $field = $this->fields[ $field_ids['name'] ]; |
|
2393 | $comment_author = Grunion_Contact_Form_Plugin::strip_tags( |
|
2394 | stripslashes( |
|
2395 | /** This filter is already documented in core/wp-includes/comment-functions.php */ |
|
2396 | apply_filters( 'pre_comment_author_name', addslashes( $field->value ) ) |
|
2397 | ) |
|
2398 | ); |
|
2399 | $comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
|
2400 | } |
|
2401 | ||
2402 | if ( isset( $field_ids['email'] ) ) { |
|
2403 | $field = $this->fields[ $field_ids['email'] ]; |
|
@@ 2402-2411 (lines=10) @@ | ||
2399 | $comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
|
2400 | } |
|
2401 | ||
2402 | if ( isset( $field_ids['email'] ) ) { |
|
2403 | $field = $this->fields[ $field_ids['email'] ]; |
|
2404 | $comment_author_email = Grunion_Contact_Form_Plugin::strip_tags( |
|
2405 | stripslashes( |
|
2406 | /** This filter is already documented in core/wp-includes/comment-functions.php */ |
|
2407 | apply_filters( 'pre_comment_author_email', addslashes( $field->value ) ) |
|
2408 | ) |
|
2409 | ); |
|
2410 | $comment_author_email_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
|
2411 | } |
|
2412 | ||
2413 | if ( isset( $field_ids['url'] ) ) { |
|
2414 | $field = $this->fields[ $field_ids['url'] ]; |