PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.13
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.13
1.8.13.1 1.8.13 1.8.12.3 1.8.12.2 1.8.12.1 1.8.12 1.8.11.3 1.8.11.2 1.8.11.1 1.8.11 1.6.6 1.6.60 1.6.7 1.6.8 1.6.9 1.7.0 1.7.0.1 1.7.0.11 1.7.0.12 1.7.0.14 1.7.0.2 1.7.0.3 1.7.0.5 1.7.0.6 1.7.0.7 All 212 releases
← All changes | templates/shortcodes/profile.php +7 -6 1.7.0.3 → 1.8.13 View file →
@@ -5,8 +5,9 @@
5 5 * @author WP Charitable LLC
6 6 * @package Charitable/Templates/Account
7 7 * @since 1.0.0
8 8 * @version 1.6.29
9 + * @version 1.8.8.6
9 10 */
10 11
11 12 // Exit if accessed directly.
12 13 if ( ! defined( 'ABSPATH' ) ) {
@@ -12,10 +13,10 @@
12 13 if ( ! defined( 'ABSPATH' ) ) {
13 14 exit;
14 15 }
15 16
16 -$form = $view_args['form'];
17 -$donor = charitable_get_user( wp_get_current_user() );
17 +$charitable_form = $view_args['form'];
18 +$charitable_donor = charitable_get_user( wp_get_current_user() );
18 19
19 20 /**
20 21 * Do something before rendering the user profile form.
21 22 *
@@ -33,13 +34,13 @@
33 34 *
34 35 * @param Charitable_Form $form The form object.
35 36 * @param array $view_args All args passed to template.
36 37 */
37 - do_action( 'charitable_form_before_fields', $form, $view_args );
38 + do_action( 'charitable_form_before_fields', $charitable_form, $view_args );
38 39
39 40 ?>
40 41 <div class="charitable-form-fields cf">
41 - <?php $form->view()->render() ?>
42 + <?php $charitable_form->view()->render() ?>
42 43 </div><!-- .charitable-form-fields -->
43 44 <?php
44 45
45 46 /**
@@ -49,13 +50,13 @@
49 50 *
50 51 * @param Charitable_Form $form The form object.
51 52 * @param array $view_args All args passed to template.
52 53 */
53 - do_action( 'charitable_form_after_fields', $form, $view_args );
54 + do_action( 'charitable_form_after_fields', $charitable_form, $view_args );
54 55
55 56 ?>
56 57 <div class="charitable-form-field charitable-submit-field">
57 - <button class="<?php echo esc_attr( charitable_get_button_class( 'profile' ) ); ?>" type="submit" name="update-profile"><?php echo apply_filters( 'charitable_profile_form_submit_button_name', __( 'Update', 'charitable' ) ); ?></button>
58 + <button class="<?php echo esc_attr( charitable_get_button_class( 'profile' ) ); ?>" type="submit" name="update-profile"><?php echo esc_html( apply_filters( 'charitable_profile_form_submit_button_name', __( 'Update', 'charitable' ) ) ); ?></button>
58 59 </div>
59 60 </form><!-- #charitable-profile-form -->
60 61 <?php
61 62 /**