|
@@ 2136-2145 (lines=10) @@
|
| 2133 |
|
$comment_content = $comment_content_label = null; |
| 2134 |
|
|
| 2135 |
|
// For each of the "standard" fields, grab their field label and value. |
| 2136 |
|
if ( isset( $field_ids['name'] ) ) { |
| 2137 |
|
$field = $this->fields[ $field_ids['name'] ]; |
| 2138 |
|
$comment_author = Grunion_Contact_Form_Plugin::strip_tags( |
| 2139 |
|
stripslashes( |
| 2140 |
|
/** This filter is already documented in core/wp-includes/comment-functions.php */ |
| 2141 |
|
apply_filters( 'pre_comment_author_name', addslashes( $field->value ) ) |
| 2142 |
|
) |
| 2143 |
|
); |
| 2144 |
|
$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 2145 |
|
} |
| 2146 |
|
|
| 2147 |
|
if ( isset( $field_ids['email'] ) ) { |
| 2148 |
|
$field = $this->fields[ $field_ids['email'] ]; |
|
@@ 2147-2156 (lines=10) @@
|
| 2144 |
|
$comment_author_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 2145 |
|
} |
| 2146 |
|
|
| 2147 |
|
if ( isset( $field_ids['email'] ) ) { |
| 2148 |
|
$field = $this->fields[ $field_ids['email'] ]; |
| 2149 |
|
$comment_author_email = Grunion_Contact_Form_Plugin::strip_tags( |
| 2150 |
|
stripslashes( |
| 2151 |
|
/** This filter is already documented in core/wp-includes/comment-functions.php */ |
| 2152 |
|
apply_filters( 'pre_comment_author_email', addslashes( $field->value ) ) |
| 2153 |
|
) |
| 2154 |
|
); |
| 2155 |
|
$comment_author_email_label = Grunion_Contact_Form_Plugin::strip_tags( $field->get_attribute( 'label' ) ); |
| 2156 |
|
} |
| 2157 |
|
|
| 2158 |
|
if ( isset( $field_ids['url'] ) ) { |
| 2159 |
|
$field = $this->fields[ $field_ids['url'] ]; |