Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving instructions for check method shows HTML in textarea after save #3293

Open
3 tasks done
derekashauer opened this issue Feb 11, 2025 · 0 comments · May be fixed by #3295
Open
3 tasks done

Saving instructions for check method shows HTML in textarea after save #3293

derekashauer opened this issue Feb 11, 2025 · 0 comments · May be fixed by #3295

Comments

@derekashauer
Copy link
Contributor

derekashauer commented Feb 11, 2025

Describe the bug
After saving the instructions for the check payment method the textarea includes HTML code within it

To Reproduce
Steps to reproduce the behavior:

  1. Edit the Check gateway
  2. Enter text for the Instructions field and, save
  3. See HTML in textarea

Screenshots
https://share.cleanshot.com/BQrP5TRB

Expected behavior
No HTML code showing, just the text exactly as it was entered. Render the info for the instructions into HTML during display/email send not when saving to the database.

Isolating the problem (mark completed items with an [x]):

  • I have deactivated other plugins and confirmed this bug occurs when only Paid Memberships Pro plugin is active.
  • This bug happens with a default WordPress theme active, or Memberlite.
  • I can reproduce this bug consistently using the steps above.

WordPress Environment
`

wp-core

version: 6.7.2
site_language: en_US
user_language: en_US
timezone: +00:00
permalink: /%postname%/
https_status: true
multisite: false
user_registration: 0
blog_public: 1
default_comment_status: open
environment_type: local
user_count: 7
dotorg_communication: true

wp-paths-sizes

wordpress_path: /Users/derekashauer/Dropbox/pmpro/pmpro.local/app/public
wordpress_size: loading...
uploads_path: /Users/derekashauer/Dropbox/pmpro/pmpro.local/app/public/wp-content/uploads
uploads_size: loading...
themes_path: /Users/derekashauer/Dropbox/pmpro/pmpro.local/app/public/wp-content/themes
themes_size: loading...
plugins_path: /Users/derekashauer/Dropbox/pmpro/pmpro.local/app/public/wp-content/plugins
plugins_size: loading...
fonts_path: /Users/derekashauer/Dropbox/pmpro/pmpro.local/app/public/wp-content/uploads/fonts
fonts_size: loading...
database_size: loading...
total_size: loading...

wp-active-theme

name: Memberlite (memberlite)
version: 5.2.1
author: Stranger Studios
author_website: https://www.strangerstudios.com
parent_theme: none
theme_features: core-block-patterns, widgets-block-editor, block-templates, menus, automatic-feed-links, title-tag, custom-logo, post-thumbnails, wp-block-styles, align-wide, responsive-embeds, html5, post-formats, custom-background, editor-color-palette, customize-selective-refresh-widgets, custom-header, infinite-scroll, widgets
theme_path: /Users/derekashauer/Dropbox/pmpro/pmpro.local/app/public/wp-content/themes/memberlite
auto_update: Disabled

wp-themes-inactive (5)

Twenty Seventeen: version: 3.8, author: the WordPress team, Auto-updates disabled
Twenty Twenty-Five: version: 1.0, author: the WordPress team (latest version: 1.1), Auto-updates disabled
Twenty Twenty-Four: version: 1.3, author: the WordPress team, Auto-updates disabled
Twenty Twenty-Three: version: 1.6, author: the WordPress team, Auto-updates disabled
Twenty Twenty-Two: version: 1.9, author: the WordPress team, Auto-updates disabled

wp-plugins-active (4)

Paid Memberships Pro: version: 3.4, author: Paid Memberships Pro, Auto-updates enabled

wp-plugins-inactive (16)

wp-media

image_editor: WP_Image_Editor_Imagick
imagick_module_version: 1809
imagemagick_version: ImageMagick 7.1.1-15 Q16 x86_64 98eceff6a:20230729 https://imagemagick.org
imagick_version: 3.7.0
file_uploads: 1
post_max_size: 1000M
upload_max_filesize: 300M
max_effective_size: 300 MB
max_file_uploads: 20
imagick_limits:
imagick::RESOURCETYPE_AREA: 160 GB
imagick::RESOURCETYPE_DISK: 9.2233720368548E+18
imagick::RESOURCETYPE_FILE: 7872
imagick::RESOURCETYPE_MAP: 80 GB
imagick::RESOURCETYPE_MEMORY: 40 GB
imagick::RESOURCETYPE_THREAD: 1
imagick::RESOURCETYPE_TIME: 9.2233720368548E+18
imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, ASHLAR, AVI, AVIF, AVS, BAYER, BAYERA, BGR, BGRA, BGRO, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUBE, CUR, CUT, DATA, DCM, DCR, DCRAW, DCX, DDS, DFONT, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FARBFELD, FAX, FF, FILE, FITS, FL32, FLV, FRACTAL, FTP, FTS, FTXT, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, HALD, HDR, HEIC, HEIF, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, JNG, JNX, JPE, JPEG, JPG, JPS, JSON, JXL, K25, KDC, KERNEL, LABEL, M2V, M4V, MAC, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MPO, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORA, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PHM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PS, PS2, PS3, PSB, PSD, PTIF, PWP, QOI, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGB565, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, STRIMG, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TM2, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMV, WPG, X3F, XBM, XC, XCF, XPM, XPS, XV, YAML, YCbCr, YCbCrA, YUV
gd_version: bundled (2.1.0 compatible)
gd_formats: GIF, JPEG, PNG, WebP, BMP, AVIF
ghostscript_version: 9.56.1

wp-server

server_architecture: Darwin 23.6.0 x86_64
httpd_software: nginx/1.16.0
php_version: 8.1.29 64bit
php_sapi: fpm-fcgi
max_input_variables: 4000
time_limit: 1200
memory_limit: 256M
max_input_time: 600
upload_max_filesize: 300M
php_post_max_size: 1000M
curl_version: 8.7.1 (SecureTransport) LibreSSL/3.3.6
suhosin: false
imagick_availability: true
pretty_permalinks: true
htaccess_extra_rules: false
current: 2025-02-11T22:40:13+00:00
utc-time: Tuesday, 11-Feb-25 22:40:13 UTC
server-time: 2025-02-11T22:40:12+00:00

wp-database

extension: mysqli
server_version: 8.0.16
client_version: mysqlnd 8.1.29
max_allowed_packet: 16777216
max_connections: 151

wp-constants

WP_HOME: undefined
WP_SITEURL: undefined
WP_MEMORY_LIMIT: 40M
WP_MAX_MEMORY_LIMIT: 256M
WP_DEBUG: true
WP_DEBUG_DISPLAY: false
WP_DEBUG_LOG: true
SCRIPT_DEBUG: false
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: local
WP_DEVELOPMENT_MODE: undefined
DB_CHARSET: utf8
DB_COLLATE: undefined

wp-filesystem

wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable
fonts: writable
mu-plugins: writable

pmpro

pmpro-cron-jobs: pmpro_cron_expire_memberships (2025-02-11 23:34:02) |
pmpro_cron_recurring_payment_reminders (2025-02-11 23:34:02) |
pmpro_cron_expiration_warnings (2025-02-11 23:34:03) |
pmpro_cron_admin_activity_email (2025-02-12 10:30:00) |
pmpro_cron_delete_tmp (2025-02-12 10:30:00) |
pmpro_cron_credit_card_expiring_warnings (2025-03-12 04:34:02) |
pmpro_license_check_key (2025-03-12 04:34:02)
pmpro-gateway: Check (Pay by Check) [check]
pmpro-gateway-env: Sandbox/Testing [sandbox]
pmpro-orders: 8 orders
pmpro-discount-codes: 0 discount codes
pmpro-sessions:
session_status: Active
pmpro-membership-levels: {
"1": {
"id": "1",
"name": "Free",
"description": "",
"confirmation": "",
"initial_payment": 0,
"billing_amount": 0,
"cycle_number": "0",
"cycle_period": "",
"billing_limit": "0",
"trial_amount": 0,
"trial_limit": "0",
"allow_signups": "1",
"expiration_number": "0",
"expiration_period": "",
"formatted_price": "Free</strong>.",
"formatted_expiration": "",
"meta": []
},
"2": {
"id": "2",
"name": "Monthly",
"description": "",
"confirmation": "",
"initial_payment": 10,
"billing_amount": 10,
"cycle_number": "1",
"cycle_period": "Month",
"billing_limit": "0",
"trial_amount": 0,
"trial_limit": "0",
"allow_signups": "1",
"expiration_number": "0",
"expiration_period": "0",
"formatted_price": "$10.00 per Month</strong>.",
"formatted_expiration": "",
"meta": {
"stripe_product_id_sandbox": [
"prod_RNIQZWIfoxbo5B"
],
"confirmation_in_email": [
"0"
]
}
},
"3": {
"id": "3",
"name": "One-time",
"description": "",
"confirmation": "",
"initial_payment": 100,
"billing_amount": 0,
"cycle_number": "0",
"cycle_period": "0",
"billing_limit": "0",
"trial_amount": 0,
"trial_limit": "0",
"allow_signups": "1",
"expiration_number": "1",
"expiration_period": "Year",
"formatted_price": "$100.00</strong> now.",
"formatted_expiration": "Membership expires after 1 Year.",
"meta": {
"confirmation_in_email": [
"0"
]
}
},
"4": {
"id": "4",
"name": "Trial",
"description": "",
"confirmation": "",
"initial_payment": 0,
"billing_amount": 25,
"cycle_number": "1",
"cycle_period": "Month",
"billing_limit": "0",
"trial_amount": 0,
"trial_limit": "0",
"allow_signups": "1",
"expiration_number": "0",
"expiration_period": "0",
"formatted_price": "$0.00</strong> now and then $25.00 per Month</strong>.",
"formatted_expiration": "",
"meta": {
"confirmation_in_email": [
"0"
]
}
},
"5": {
"id": "5",
"name": "6 payments",
"description": "",
"confirmation": "",
"initial_payment": 20,
"billing_amount": 20,
"cycle_number": "1",
"cycle_period": "Month",
"billing_limit": "6",
"trial_amount": 0,
"trial_limit": "0",
"allow_signups": "1",
"expiration_number": "0",
"expiration_period": "0",
"formatted_price": "$20.00</strong> now and then $20.00 per Month for 6 more Months</strong>.",
"formatted_expiration": "",
"meta": {
"confirmation_in_email": [
"0"
]
}
}
}
pmpro-level-groups: {
"1": {
"id": "1",
"name": "Main Group",
"allow_multiple_selections": "0",
"displayorder": "1",
"level_ids": [
"1",
"2",
"3",
"4",
"5"
]
}
}
pmpro-custom-templates:
pmpro-getfile-usage: PMPRO_GETFILE_ENABLED is not set
pmpro-htaccess-cache-usage: Off
pmpro-pages:
account: https://pmpro.local/membership-account/
billing: https://pmpro.local/membership-account/membership-billing/
cancel: https://pmpro.local/membership-account/membership-cancel/
checkout: https://pmpro.local/membership-checkout/
confirmation: https://pmpro.local/membership-checkout/membership-confirmation/
invoice: https://pmpro.local/membership-account/membership-orders/
levels: https://pmpro.local/membership-levels/
login: https://pmpro.local/login/
member_profile_edit: https://pmpro.local/membership-account/your-profile/
pmpro-library-conflicts:
stripe: v7.128.0 (2024-12-19 19:44:47) - /Users/derekashauer/Dropbox/pmpro/pmpro.local/app/public/wp-content/plugins/give/vendor/stripe/stripe-php/lib/Stripe.php
pmpro-add-ons-incorrect-folder-names: Paid Memberships Pro - Abandoned Cart Recovery ( pmpro-abandoned-cart-recovery/pmpro-abandoned-cart-recovery.php => pmpro-abandoned-cart-recovery-dev/pmpro-abandoned-cart-recovery.php )
pmpro-current-site-url: https://pmpro.local
pmpro-recorded-site-url: https://pmpro.local
pmpro-pause-mode: Disabled
`

derekashauer added a commit to derekashauer/paid-memberships-pro that referenced this issue Feb 11, 2025
Instructions for check payments would save with <p> tags wrapping everything and show it in the admin textarea box after saving
@derekashauer derekashauer linked a pull request Feb 11, 2025 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants