|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
/** |
|
4
|
|
|
* Class Jetpack_Sync_Actions |
|
5
|
|
|
* |
|
6
|
|
|
* @deprecated Use Automattic\Jetpack\Sync\Actions |
|
7
|
|
|
*/ |
|
8
|
|
|
class Jetpack_Sync_Actions extends Automattic\Jetpack\Sync\Actions { |
|
9
|
|
|
|
|
10
|
|
|
static function init() { |
|
11
|
|
|
_deprecated_function( __METHOD__, 'jetpack-7.5', 'Automattic\Jetpack\Sync\Actions' ); |
|
12
|
|
|
|
|
13
|
|
|
return Actions::init(); |
|
14
|
|
|
} |
|
15
|
|
|
|
|
16
|
|
|
static function add_sender_shutdown() { |
|
17
|
|
|
_deprecated_function( __METHOD__, 'jetpack-7.5', 'Automattic\Jetpack\Sync\Actions' ); |
|
18
|
|
|
|
|
19
|
|
|
return Actions::add_sender_shutdown(); |
|
20
|
|
|
} |
|
21
|
|
|
|
|
22
|
|
|
static function should_initialize_sender() { |
|
23
|
|
|
_deprecated_function( __METHOD__, 'jetpack-7.5', 'Automattic\Jetpack\Sync\Actions' ); |
|
24
|
|
|
|
|
25
|
|
|
return Actions::should_initialize_sender(); |
|
26
|
|
|
} |
|
27
|
|
|
|
|
28
|
|
|
static function sync_allowed() { |
|
29
|
|
|
_deprecated_function( __METHOD__, 'jetpack-7.5', 'Automattic\Jetpack\Sync\Actions' ); |
|
30
|
|
|
|
|
31
|
|
|
return Actions::sync_allowed(); |
|
32
|
|
|
} |
|
33
|
|
|
|
|
34
|
|
|
static function sync_via_cron_allowed() { |
|
35
|
|
|
_deprecated_function( __METHOD__, 'jetpack-7.5', 'Automattic\Jetpack\Sync\Actions' ); |
|
36
|
|
|
|
|
37
|
|
|
return Actions::sync_via_cron_allowed(); |
|
38
|
|
|
} |
|
39
|
|
|
|
|
40
|
|
|
static function prevent_publicize_blacklisted_posts( $should_publicize, $post ) { |
|
41
|
|
|
_deprecated_function( __METHOD__, 'jetpack-7.5', 'Automattic\Jetpack\Sync\Actions' ); |
|
42
|
|
|
|
|
43
|
|
|
return Actions::prevent_publicize_blacklisted_posts( $should_publicize, $post ); |
|
44
|
|
|
} |
|
45
|
|
|
|
|
46
|
|
|
static function set_is_importing_true() { |
|
47
|
|
|
_deprecated_function( __METHOD__, 'jetpack-7.5', 'Automattic\Jetpack\Sync\Actions' ); |
|
48
|
|
|
|
|
49
|
|
|
return Actions::set_is_importing_true(); |
|
50
|
|
|
} |
|
51
|
|
|
|
|
52
|
|
|
static function send_data( $data, $codec_name, $sent_timestamp, $queue_id, $checkout_duration, $preprocess_duration ) { |
|
53
|
|
|
_deprecated_function( __METHOD__, 'jetpack-7.5', 'Automattic\Jetpack\Sync\Actions' ); |
|
54
|
|
|
|
|
55
|
|
|
return Actions::send_data( $data, $codec_name, $sent_timestamp, $queue_id, $checkout_duration, $preprocess_duration ); |
|
56
|
|
|
} |
|
57
|
|
|
|
|
58
|
|
|
static function do_initial_sync() { |
|
59
|
|
|
_deprecated_function( __METHOD__, 'jetpack-7.5', 'Automattic\Jetpack\Sync\Actions' ); |
|
60
|
|
|
|
|
61
|
|
|
return Actions::do_initial_sync(); |
|
62
|
|
|
} |
|
63
|
|
|
|
|
64
|
|
|
static function do_full_sync( $modules = null ) { |
|
65
|
|
|
_deprecated_function( __METHOD__, 'jetpack-7.5', 'Automattic\Jetpack\Sync\Actions' ); |
|
66
|
|
|
|
|
67
|
|
|
return Actions::do_full_sync( $modules ); |
|
68
|
|
|
} |
|
69
|
|
|
|
|
70
|
|
|
static function jetpack_cron_schedule( $schedules ) { |
|
71
|
|
|
_deprecated_function( __METHOD__, 'jetpack-7.5', 'Automattic\Jetpack\Sync\Actions' ); |
|
72
|
|
|
|
|
73
|
|
|
return Actions::jetpack_cron_schedule( $schedules ); |
|
74
|
|
|
} |
|
75
|
|
|
|
|
76
|
|
|
static function do_cron_sync() { |
|
77
|
|
|
_deprecated_function( __METHOD__, 'jetpack-7.5', 'Automattic\Jetpack\Sync\Actions' ); |
|
78
|
|
|
|
|
79
|
|
|
return Actions::do_cron_sync(); |
|
80
|
|
|
} |
|
81
|
|
|
|
|
82
|
|
|
static function do_cron_full_sync() { |
|
83
|
|
|
_deprecated_function( __METHOD__, 'jetpack-7.5', 'Automattic\Jetpack\Sync\Actions' ); |
|
84
|
|
|
|
|
85
|
|
|
return Actions::do_cron_full_sync(); |
|
86
|
|
|
} |
|
87
|
|
|
|
|
88
|
|
|
static function do_cron_sync_by_type( $type ) { |
|
89
|
|
|
_deprecated_function( __METHOD__, 'jetpack-7.5', 'Automattic\Jetpack\Sync\Actions' ); |
|
90
|
|
|
|
|
91
|
|
|
return Actions::do_cron_sync_by_type(); |
|
92
|
|
|
} |
|
93
|
|
|
|
|
94
|
|
|
static function initialize_listener() { |
|
95
|
|
|
_deprecated_function( __METHOD__, 'jetpack-7.5', 'Automattic\Jetpack\Sync\Actions' ); |
|
96
|
|
|
|
|
97
|
|
|
return Actions::initialize_listener(); |
|
98
|
|
|
} |
|
99
|
|
|
|
|
100
|
|
|
static function initialize_sender() { |
|
101
|
|
|
_deprecated_function( __METHOD__, 'jetpack-7.5', 'Automattic\Jetpack\Sync\Actions' ); |
|
102
|
|
|
|
|
103
|
|
|
return Actions::initialize_sender(); |
|
104
|
|
|
} |
|
105
|
|
|
|
|
106
|
|
|
static function initialize_woocommerce() { |
|
107
|
|
|
_deprecated_function( __METHOD__, 'jetpack-7.5', 'Automattic\Jetpack\Sync\Actions' ); |
|
108
|
|
|
|
|
109
|
|
|
return Actions::initialize_woocommerce(); |
|
110
|
|
|
} |
|
111
|
|
|
|
|
112
|
|
|
static function add_woocommerce_sync_module( $sync_modules ) { |
|
113
|
|
|
_deprecated_function( __METHOD__, 'jetpack-7.5', 'Automattic\Jetpack\Sync\Actions' ); |
|
114
|
|
|
|
|
115
|
|
|
return Actions::add_woocommerce_sync_module( $sync_modules ); |
|
116
|
|
|
} |
|
117
|
|
|
|
|
118
|
|
|
static function initialize_wp_super_cache() { |
|
119
|
|
|
_deprecated_function( __METHOD__, 'jetpack-7.5', 'Automattic\Jetpack\Sync\Actions' ); |
|
120
|
|
|
|
|
121
|
|
|
return Actions::initialize_wp_super_cache(); |
|
122
|
|
|
} |
|
123
|
|
|
|
|
124
|
|
|
static function add_wp_super_cache_sync_module( $sync_modules ) { |
|
125
|
|
|
_deprecated_function( __METHOD__, 'jetpack-7.5', 'Automattic\Jetpack\Sync\Actions' ); |
|
126
|
|
|
|
|
127
|
|
|
return Actions::add_wp_super_cache_sync_module( $sync_modules ); |
|
128
|
|
|
} |
|
129
|
|
|
|
|
130
|
|
|
static function sanitize_filtered_sync_cron_schedule( $schedule ) { |
|
131
|
|
|
_deprecated_function( __METHOD__, 'jetpack-7.5', 'Automattic\Jetpack\Sync\Actions' ); |
|
132
|
|
|
|
|
133
|
|
|
return Actions::sanitize_filtered_sync_cron_schedule( $schedule ); |
|
134
|
|
|
} |
|
135
|
|
|
|
|
136
|
|
|
static function get_start_time_offset( $schedule = '', $hook = '' ) { |
|
137
|
|
|
_deprecated_function( __METHOD__, 'jetpack-7.5', 'Automattic\Jetpack\Sync\Actions' ); |
|
138
|
|
|
|
|
139
|
|
|
return Actions::get_start_time_offset( $schedule, $hook ); |
|
140
|
|
|
} |
|
141
|
|
|
|
|
142
|
|
|
static function maybe_schedule_sync_cron( $schedule, $hook ) { |
|
143
|
|
|
_deprecated_function( __METHOD__, 'jetpack-7.5', 'Automattic\Jetpack\Sync\Actions' ); |
|
144
|
|
|
|
|
145
|
|
|
return Actions::maybe_schedule_sync_cron( $schedule, $hook ); |
|
146
|
|
|
} |
|
147
|
|
|
|
|
148
|
|
|
static function clear_sync_cron_jobs() { |
|
149
|
|
|
_deprecated_function( __METHOD__, 'jetpack-7.5', 'Automattic\Jetpack\Sync\Actions' ); |
|
150
|
|
|
|
|
151
|
|
|
return Actions::clear_sync_cron_jobs(); |
|
152
|
|
|
} |
|
153
|
|
|
|
|
154
|
|
|
static function init_sync_cron_jobs() { |
|
155
|
|
|
_deprecated_function( __METHOD__, 'jetpack-7.5', 'Automattic\Jetpack\Sync\Actions' ); |
|
156
|
|
|
|
|
157
|
|
|
return Actions::init_sync_cron_jobs(); |
|
158
|
|
|
} |
|
159
|
|
|
|
|
160
|
|
|
static function cleanup_on_upgrade( $new_version = null, $old_version = null ) { |
|
161
|
|
|
_deprecated_function( __METHOD__, 'jetpack-7.5', 'Automattic\Jetpack\Sync\Actions' ); |
|
162
|
|
|
|
|
163
|
|
|
return Actions::cleanup_on_upgrade( $new_version, $old_version ); |
|
164
|
|
|
} |
|
165
|
|
|
|
|
166
|
|
|
static function get_sync_status( $fields = null ) { |
|
167
|
|
|
_deprecated_function( __METHOD__, 'jetpack-7.5', 'Automattic\Jetpack\Sync\Actions' ); |
|
168
|
|
|
|
|
169
|
|
|
return Actions::get_sync_status( $fields ); |
|
170
|
|
|
} |
|
171
|
|
|
|
|
172
|
|
|
} |
|
173
|
|
|
|