@@ 267-277 (lines=11) @@ | ||
264 | wp_schedule_single_event( strtotime( $when ), 'jetpack_sync_actions' ); |
|
265 | } |
|
266 | ||
267 | private function maybe_sync_constants() { |
|
268 | $constants = $this->get_all_constants(); |
|
269 | if ( empty( $constants ) ) { |
|
270 | return; |
|
271 | } |
|
272 | $constants_check_sum = $this->get_check_sum( $constants ); |
|
273 | if ( $constants_check_sum !== get_option( self::$constants_checksum_option_name ) ) { |
|
274 | do_action( 'jetpack_sync_current_constants', $constants ); |
|
275 | update_option( self::$constants_checksum_option_name, $constants_check_sum ); |
|
276 | } |
|
277 | } |
|
278 | ||
279 | private function get_all_constants() { |
|
280 | return array_combine( |
|
@@ 294-305 (lines=12) @@ | ||
291 | return null; |
|
292 | } |
|
293 | ||
294 | private function maybe_sync_callables() { |
|
295 | $callables = $this->get_all_callables(); |
|
296 | if ( empty( $callables ) ) { |
|
297 | return; |
|
298 | } |
|
299 | $callables_check_sum = $this->get_check_sum( $callables ); |
|
300 | ||
301 | if ( $callables_check_sum !== get_option( self::$functions_checksum_option_name ) ) { |
|
302 | do_action( 'jetpack_sync_current_callables', $callables ); |
|
303 | update_option( self::$functions_checksum_option_name, $callables_check_sum ); |
|
304 | } |
|
305 | } |
|
306 | ||
307 | private function get_all_callables() { |
|
308 | return array_combine( |