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 +12 -9 1.6.8 → 1.8.13 View file →
@@ -1,19 +1,22 @@
1 1 <?php
2 2 /**
3 3 * The template used to display the profile form.
4 4 *
5 - * @author Studio 164a
5 + * @author WP Charitable LLC
6 6 * @package Charitable/Templates/Account
7 7 * @since 1.0.0
8 - * @version 1.5.7
8 + * @version 1.6.29
9 + * @version 1.8.8.6
9 10 */
10 11
11 12 // Exit if accessed directly.
12 -if ( ! defined( 'ABSPATH' ) ) { exit; }
13 +if ( ! defined( 'ABSPATH' ) ) {
14 + exit;
15 +}
13 16
14 -$form = $view_args['form'];
15 -$donor = charitable_get_user( wp_get_current_user() );
17 +$charitable_form = $view_args['form'];
18 +$charitable_donor = charitable_get_user( wp_get_current_user() );
16 19
17 20 /**
18 21 * Do something before rendering the user profile form.
19 22 *
@@ -31,13 +34,13 @@
31 34 *
32 35 * @param Charitable_Form $form The form object.
33 36 * @param array $view_args All args passed to template.
34 37 */
35 - do_action( 'charitable_form_before_fields', $form, $view_args );
38 + do_action( 'charitable_form_before_fields', $charitable_form, $view_args );
36 39
37 40 ?>
38 41 <div class="charitable-form-fields cf">
39 - <?php $form->view()->render() ?>
42 + <?php $charitable_form->view()->render() ?>
40 43 </div><!-- .charitable-form-fields -->
41 44 <?php
42 45
43 46 /**
@@ -47,13 +50,13 @@
47 50 *
48 51 * @param Charitable_Form $form The form object.
49 52 * @param array $view_args All args passed to template.
50 53 */
51 - do_action( 'charitable_form_after_fields', $form, $view_args );
54 + do_action( 'charitable_form_after_fields', $charitable_form, $view_args );
52 55
53 56 ?>
54 57 <div class="charitable-form-field charitable-submit-field">
55 - <button class="button button-primary" 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>
56 59 </div>
57 60 </form><!-- #charitable-profile-form -->
58 61 <?php
59 62 /**