strangerstudios / pmpro-add-name-to-checkout

Adds “First Name” and “Last Name” fields to the “Account Information” section of the Membership Checkout page when using Paid Memberships Pro.
https://www.paidmembershipspro.com/add-ons/add-first-last-name-to-checkout/
17 stars 23 forks source link

PHP shortcut is not standard on all servers #2

Closed rumspeed closed 5 years ago

rumspeed commented 8 years ago

I found an issue with using the PHP shortcut on my server. <? is the shortcut for <?php and is not always on by default on some servers. <?php is the full version and is usually recommended, as it will always works.

I changed these: <?=$first_name?> <?=$last_name?>

To these <?php echo $first_name ?> <?php echo $last_name ?>

And it worked just fine. This screenshot is from before I changed the code.

pmp_-_php_issue

ideadude commented 5 years ago

Fixed here https://github.com/strangerstudios/pmpro-add-name-to-checkout/commit/79c1a81aee894a8da81e36e5075a1725e546ffa9 thanks