← All changes
|
includes/admin/tracking/charitable-tracking-admin-hooks.php
+14
-5
1.8.11
→
1.8.13
View file →
| @@ -21,10 +21,15 @@ | ||
| 21 | 21 | * |
| 22 | 22 | * @see Charitable_Tracking::schedule_send() |
| 23 | 23 | * @see Charitable_Tracking::add_schedules() |
| 24 | 24 | */ |
| 25 | -add_action( 'init', array( Charitable_Tracking::get_instance(), 'schedule_send' ) ); | |
| 26 | -add_action( 'cron_schedules', array( Charitable_Tracking::get_instance(), 'add_schedules' ) ); | |
| 25 | +/** | |
| 26 | + * MOVED in 1.8.12 to includes/tracking/charitable-tracking-hooks.php. | |
| 27 | + * | |
| 28 | + * These were admin-only, so the weekly check-in never ran in a wp-cron.php | |
| 29 | + * request and the recurring event was destroyed on its first firing. Do NOT | |
| 30 | + * re-add them here. | |
| 31 | + */ | |
| 27 | 32 | |
| 28 | 33 | /** |
| 29 | 34 | * Register the check-in. |
| 30 | 35 | * |
| @@ -29,9 +34,9 @@ | ||
| 29 | 34 | * Register the check-in. |
| 30 | 35 | * |
| 31 | 36 | * @see Charitable_Tracking::send_checkin() |
| 32 | 37 | */ |
| 33 | -add_action( 'charitable_usage_tracking_cron', array( Charitable_Tracking::get_instance(), 'send_checkins' ) ); | |
| 38 | +/* The charitable_usage_tracking_cron handler also moved; see above. */ | |
| 34 | 39 | |
| 35 | 40 | /** |
| 36 | 41 | * Testing the check-in. |
| 37 | 42 | * |
| @@ -43,9 +48,9 @@ | ||
| 43 | 48 | * Save the time to first campaign. |
| 44 | 49 | * |
| 45 | 50 | * @see Charitable_Tracking::insert_time_to_first_campaign() |
| 46 | 51 | */ |
| 47 | -add_action( 'charitable_campaign_processor_save_core', array( Charitable_Tracking::get_instance(), 'insert_time_to_first_campaign' ), 10, 4 ); | |
| 52 | +/* The first-campaign writer moved; see above. */ | |
| 48 | 53 | |
| 49 | 54 | /** |
| 50 | 55 | * Save the time to first donation. |
| 51 | 56 | * |
| @@ -50,5 +55,9 @@ | ||
| 50 | 55 | * Save the time to first donation. |
| 51 | 56 | * |
| 52 | 57 | * @see Charitable_Tracking::insert_time_to_first_donation() |
| 53 | 58 | */ |
| 54 | -add_action( 'charitable_after_save_donation', array( Charitable_Tracking::get_instance(), 'insert_time_to_first_donation' ), 10, 2 ); | |
| 59 | +/* | |
| 60 | + * The first-donation writer moved too. charitable_after_save_donation fires | |
| 61 | + * during front-end checkout, so registering it here meant it never fired for a | |
| 62 | + * real donation. Present since 1.8.4.5. | |
| 63 | + */ | |