|
@@ 525-535 (lines=11) @@
|
| 522 |
|
do_action( 'jetpack_full_sync_network_options', true ); |
| 523 |
|
} |
| 524 |
|
|
| 525 |
|
private function maybe_sync_constants() { |
| 526 |
|
$constants = $this->get_all_constants(); |
| 527 |
|
if ( empty( $constants ) ) { |
| 528 |
|
return; |
| 529 |
|
} |
| 530 |
|
$constants_check_sum = $this->get_check_sum( $constants ); |
| 531 |
|
if ( $constants_check_sum !== (int) get_option( self::CONSTANTS_CHECKSUM_OPTION_NAME ) ) { |
| 532 |
|
do_action( 'jetpack_sync_current_constants', $constants ); |
| 533 |
|
update_option( self::CONSTANTS_CHECKSUM_OPTION_NAME, $constants_check_sum ); |
| 534 |
|
} |
| 535 |
|
} |
| 536 |
|
|
| 537 |
|
private function get_all_constants() { |
| 538 |
|
return array_combine( |
|
@@ 557-567 (lines=11) @@
|
| 554 |
|
$this->maybe_sync_callables(); |
| 555 |
|
} |
| 556 |
|
|
| 557 |
|
private function maybe_sync_callables() { |
| 558 |
|
$callables = $this->get_all_callables(); |
| 559 |
|
if ( empty( $callables ) ) { |
| 560 |
|
return; |
| 561 |
|
} |
| 562 |
|
$callables_check_sum = $this->get_check_sum( $callables ); |
| 563 |
|
if ( $callables_check_sum !== (int) get_option( self::FUNCTIONS_CHECKSUM_OPTION_NAME ) ) { |
| 564 |
|
do_action( 'jetpack_sync_current_callables', $callables ); |
| 565 |
|
update_option( self::FUNCTIONS_CHECKSUM_OPTION_NAME, $callables_check_sum ); |
| 566 |
|
} |
| 567 |
|
} |
| 568 |
|
|
| 569 |
|
private function get_all_callables() { |
| 570 |
|
return array_combine( |