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