@@ 135-149 (lines=15) @@ | ||
132 | set_transient( self::CALLABLES_AWAIT_TRANSIENT_NAME, microtime( true ), Jetpack_Sync_Defaults::$default_sync_callables_wait_time ); |
|
133 | } |
|
134 | ||
135 | public function expand_callables( $args ) { |
|
136 | if ( $args[0] ) { |
|
137 | $callables = $this->get_all_callables(); |
|
138 | // Update the callable checksums on full sync. |
|
139 | $callable_checksums = array(); |
|
140 | foreach ( $callables as $name => $value ) { |
|
141 | $callable_checksums[ $name ] = $this->get_check_sum( $value ); |
|
142 | } |
|
143 | update_option( self::CALLABLES_CHECKSUM_OPTION_NAME, $callable_checksums ); |
|
144 | ||
145 | return $callables; |
|
146 | } |
|
147 | ||
148 | return $args; |
|
149 | } |
|
150 | } |
|
151 |
@@ 122-136 (lines=15) @@ | ||
119 | : null; |
|
120 | } |
|
121 | ||
122 | public function expand_constants( $args ) { |
|
123 | if ( $args[0] ) { |
|
124 | $constants = $this->get_all_constants(); |
|
125 | ||
126 | // Update the callable checksums on full sync. |
|
127 | $constants_checksums = array(); |
|
128 | foreach ( $constants as $name => $value ) { |
|
129 | $constants_checksums[ $name ] = $this->get_check_sum( $value ); |
|
130 | } |
|
131 | update_option( self::CONSTANTS_CHECKSUM_OPTION_NAME, $constants_checksums ); |
|
132 | return $constants; |
|
133 | } |
|
134 | ||
135 | return $args; |
|
136 | } |
|
137 | } |
|
138 |