Changeset 3347835
- Timestamp:
- 08/21/2025 02:57:33 AM (6 months ago)
- Location:
- recurring-donation/trunk
- Files:
-
- 2 edited
-
donate_plugin.php (modified) (9 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
recurring-donation/trunk/donate_plugin.php
r3084775 r3347835 5 5 Description: Plugin for accepting recurring PayPal donations via a simple shortcode 6 6 Author: wpecommerce 7 Version: 1. 87 Version: 1.9 8 8 Author URI: https://wp-ecommerce.net/ 9 9 License: GPLv2 or later … … 103 103 <?php if ( $message != '' && isset( $_POST['dntplgn_submit'] ) && is_email( $_POST['dntplgn_paypal_account'] ) ) { ?> 104 104 <div class="updated fade"> 105 <p><strong><?php echo $message; ?></strong></p>105 <p><strong><?php echo esc_attr($message); ?></strong></p> 106 106 </div> 107 <?php } elseif ( '' != $error_message && ! is_email( $_POST['dntplgn_paypal_account']) ) { ?>107 <?php } elseif ( isset($error_message) ) { ?> 108 108 <div class="error"> 109 <p><strong><?php echo $error_message; ?></strong></p>109 <p><strong><?php echo esc_attr($error_message); ?></strong></p> 110 110 </div> 111 111 <?php } ?> … … 144 144 </th> 145 145 <td class='dnt_account_row'> 146 <input type='text' name='dntplgn_paypal_account' size='70' id='dntplgn_paypal_account' value="<?php if ( '' != $dntplgn_options['dntplgn_paypal_email'] ) echo $dntplgn_options['dntplgn_paypal_email']; ?>" />146 <input type='text' name='dntplgn_paypal_account' size='70' id='dntplgn_paypal_account' value="<?php if ( '' != $dntplgn_options['dntplgn_paypal_email'] ) echo esc_attr($dntplgn_options['dntplgn_paypal_email']); ?>" /> 147 147 <p class="description">The donation will go to this PayPal account.</p> 148 148 <input type='hidden' id='dnt_tab_paypal' name='dnt_tab_paypal' value='1' /> … … 197 197 </th> 198 198 <td class='dnt_account_row'> 199 <input type='text' name='dntplgn_currency_symbol' size='10' id='dntplgn_currency_symbol' value="<?php echo $dntplgn_currency_symbol; ?>" />199 <input type='text' name='dntplgn_currency_symbol' size='10' id='dntplgn_currency_symbol' value="<?php echo esc_attr($dntplgn_currency_symbol); ?>" /> 200 200 <p class="description">This symbol is shown next to the recurring amount values. By default it will use the $ symbol if you don't specify a currency symbol.</p> 201 201 </td> … … 207 207 </th> 208 208 <td class='dnt_account_row'> 209 <input type='text' name='dntplgn_return_url' size='70' id='dntplgn_return_url' value="<?php echo $dntplgn_return_url; ?>" />209 <input type='text' name='dntplgn_return_url' size='70' id='dntplgn_return_url' value="<?php echo esc_attr($dntplgn_return_url); ?>" /> 210 210 <p class="description">PayPal will send the user to this page after the payment.</p> 211 211 </td> … … 217 217 </th> 218 218 <td class='dnt_account_row'> 219 <input type='text' name='dntplgn_cancel_return' size='70' id='dntplgn_cancel_return' value="<?php echo $dntplgn_cancel_return; ?>" />219 <input type='text' name='dntplgn_cancel_return' size='70' id='dntplgn_cancel_return' value="<?php echo esc_attr($dntplgn_cancel_return); ?>" /> 220 220 <p class="description">PayPal will send the user to this page if the user clicks on the cancel link on the PayPal checkout page.</p> 221 221 </td> … … 227 227 </th> 228 228 <td class='dnt_account_row'> 229 <input type='text' name='dntplgn_pm_label' size='30' id='dntplgn_pm_label' value="<?php echo $dntplgn_pm_label; ?>" />229 <input type='text' name='dntplgn_pm_label' size='30' id='dntplgn_pm_label' value="<?php echo esc_attr($dntplgn_pm_label); ?>" /> 230 230 <p class="description">This label is used next to the recurring amount select options. Example: you can use a vlaue of p/m (short for per month). Leave this field empty to hide this label.</p> 231 231 </td> … … 358 358 <!-- Donate Amount --> 359 359 <input id="first_button" type="radio" name="a3" checked="checked" value="<?php echo esc_attr($dntplgn_atts['recurring_amt1']); ?>" /> 360 <label for="first_button"> <?php echo $currency_symbol; ?><?php echo esc_attr($dntplgn_atts['recurring_amt1']); ?> <span class="dntplgn_pm_label"><?php echo esc_attr($per_month_label); ?></span></label>360 <label for="first_button"> <?php echo esc_attr($currency_symbol); ?><?php echo esc_attr($dntplgn_atts['recurring_amt1']); ?> <span class="dntplgn_pm_label"><?php echo esc_attr($per_month_label); ?></span></label> 361 361 <input id="second_button" type="radio" name="a3" value="<?php echo esc_attr($dntplgn_atts['recurring_amt2']); ?>" /> 362 <label for="second_button"> <?php echo $currency_symbol; ?><?php echo esc_attr($dntplgn_atts['recurring_amt2']); ?> <span class="dntplgn_pm_label"><?php echo esc_attr($per_month_label); ?></span></label>362 <label for="second_button"> <?php echo esc_attr($currency_symbol); ?><?php echo esc_attr($dntplgn_atts['recurring_amt2']); ?> <span class="dntplgn_pm_label"><?php echo esc_attr($per_month_label); ?></span></label> 363 363 <input id="third_button" type="radio" name="a3" value="<?php echo esc_attr($dntplgn_atts['recurring_amt3']); ?>" /> 364 <label for="third_button"> <?php echo $currency_symbol; ?><?php echo esc_attr($dntplgn_atts['recurring_amt3']); ?> <span class="dntplgn_pm_label"><?php echo esc_attr($per_month_label); ?></span></label>364 <label for="third_button"> <?php echo esc_attr($currency_symbol); ?><?php echo esc_attr($dntplgn_atts['recurring_amt3']); ?> <span class="dntplgn_pm_label"><?php echo esc_attr($per_month_label); ?></span></label> 365 365 <input id="fourth_button" type="radio" name="a3" value="other" /> 366 366 <label for="fourth_button"> <?php _e( 'Other', 'donateplugin' ); ?> <span class="dntplgn_pm_label"><?php echo esc_attr($per_month_label); ?></span></label></br> … … 413 413 register_activation_hook( __FILE__, 'dntplgn_register_settings' ); 414 414 415 //Add the link to settings menu in plugin's dashboard menu. 416 function dntplgn_add_settings_link( $links, $file ) { 417 if ( $file == plugin_basename( __FILE__ ) ) { 418 $settings_link = '<a href="admin.php?page=dntplgn_plugin">' . (__( "Settings", "donateplugin" )) . '</a>'; 419 array_unshift( $links, $settings_link ); 420 } 421 return $links; 422 } 423 add_filter( 'plugin_action_links', 'dntplgn_add_settings_link', 10, 2 ); 424 425 415 426 add_action( 'init', 'dntplgn_plugin_init' ); 416 427 add_action( 'admin_init', 'dntplgn_plugin_init' ); -
recurring-donation/trunk/readme.txt
r3271705 r3347835 3 3 Donate link: https://wp-ecommerce.net/ 4 4 Tags: subscription, donate, donation, paypal, recurring, payment, donations, paypal donation, button, shortcode, monthly 5 Requires at least: 3.05 Requires at least: 5.0 6 6 Tested up to: 6.8 7 Stable tag: 1. 87 Stable tag: 1.9 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 86 86 == Changelog == 87 87 88 = 1.9 = 89 * Added proper output escaping to admin input fields. 90 88 91 = 1.8 = 89 92 * Added output escaping to the shortcode parameters.
Note: See TracChangeset
for help on using the changeset viewer.