@@ 225-235 (lines=11) @@ | ||
222 | } |
|
223 | } |
|
224 | ||
225 | private function maybe_sync_constants() { |
|
226 | $constants = $this->get_all_constants(); |
|
227 | if ( empty( $constants ) ) { |
|
228 | return; |
|
229 | } |
|
230 | $constants_check_sum = $this->get_check_sum( $constants ); |
|
231 | if ( $constants_check_sum !== get_option( self::$constants_checksum_option_name ) ) { |
|
232 | do_action( 'jetpack_sync_current_constants', $constants ); |
|
233 | update_option( self::$constants_checksum_option_name, $constants_check_sum ); |
|
234 | } |
|
235 | } |
|
236 | ||
237 | private function get_all_constants() { |
|
238 | return array_combine( |
|
@@ 252-263 (lines=12) @@ | ||
249 | return null; |
|
250 | } |
|
251 | ||
252 | private function maybe_sync_callables() { |
|
253 | $callables = $this->get_all_callables(); |
|
254 | if ( empty( $callables ) ) { |
|
255 | return; |
|
256 | } |
|
257 | $callables_check_sum = $this->get_check_sum( $callables ); |
|
258 | ||
259 | if ( $callables_check_sum !== get_option( self::$functions_checksum_option_name ) ) { |
|
260 | do_action( 'jetpack_sync_current_callables', $callables ); |
|
261 | update_option( self::$functions_checksum_option_name, $callables_check_sum ); |
|
262 | } |
|
263 | } |
|
264 | ||
265 | private function get_all_callables() { |
|
266 | return array_combine( |