Skip to content

Commit

Permalink
Fixing HTML in check instructions strangerstudios#3293
Browse files Browse the repository at this point in the history
Instructions for check payments would save with <p> tags wrapping everything and show it in the admin textarea box after saving
  • Loading branch information
derekashauer committed Feb 11, 2025
1 parent c51eb7c commit 0f95cfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/gateways/class.pmprogateway_check.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ static function pmpro_payment_option_fields($values, $gateway)
<label for="instructions"><?php esc_html_e('Instructions', 'paid-memberships-pro' );?></label>
</th>
<td>
<textarea id="instructions" name="instructions" rows="3" cols="50" class="large-text"><?php echo wp_kses_post( wpautop( wp_unslash( $values['instructions'] ) ) ); ?></textarea>
<textarea id="instructions" name="instructions" rows="3" cols="50" class="large-text"><?php echo esc_textarea( $values['instructions'] ); ?></textarea>
<p class="description"><?php echo esc_html( sprintf( __( 'Instructions for members to follow to complete their purchase when paying with %s. Shown on the membership checkout, confirmation, and order pages.', 'paid-memberships-pro' ), $check_gateway_label ) );?></p>
</td>
</tr>
Expand Down

0 comments on commit 0f95cfc

Please sign in to comment.